Skip to content

Commit 3dc3105

Browse files
committed
123
1 parent a23014b commit 3dc3105

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/realm/object-store/c_api/error.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,23 @@ ErrorStorage::ErrorStorage(std::exception_ptr ptr) noexcept
1616
: m_err(none)
1717
, m_message_buf()
1818
{
19-
printf("ErrorStorage::ErrorStorage(std::exception_ptr ptr) noexcept");
19+
printf("ErrorStorage::ErrorStorage(std::exception_ptr ptr) noexcept\n");
2020
assign(std::move(ptr));
2121
}
2222

2323
ErrorStorage::ErrorStorage(const ErrorStorage& other)
2424
: m_err(other.m_err)
2525
, m_message_buf(other.m_message_buf)
2626
{
27-
printf("ErrorStorage::ErrorStorage(const ErrorStorage& other)");
27+
printf("ErrorStorage::ErrorStorage(const ErrorStorage& other)\n");
2828
if (m_err) {
2929
m_err->message = m_message_buf.c_str();
3030
}
3131
}
3232

3333
ErrorStorage& ErrorStorage::operator=(const ErrorStorage& other)
3434
{
35-
printf("ErrorStorage& ErrorStorage::operator=(const ErrorStorage& other)");
35+
printf("ErrorStorage& ErrorStorage::operator=(const ErrorStorage& other)\n");
3636
m_err = other.m_err;
3737
m_message_buf = other.m_message_buf;
3838
if (m_err) {
@@ -45,7 +45,7 @@ ErrorStorage::ErrorStorage(ErrorStorage&& other)
4545
: m_err(std::move(other.m_err))
4646
, m_message_buf(std::move(other.m_message_buf))
4747
{
48-
printf("ErrorStorage::ErrorStorage(ErrorStorage&& other)");
48+
printf("ErrorStorage::ErrorStorage(ErrorStorage&& other)\n");
4949
if (m_err) {
5050
m_err->message = m_message_buf.c_str();
5151
}
@@ -54,7 +54,7 @@ ErrorStorage::ErrorStorage(ErrorStorage&& other)
5454

5555
ErrorStorage& ErrorStorage::operator=(ErrorStorage&& other)
5656
{
57-
printf("ErrorStorage& ErrorStorage::operator=(ErrorStorage&& other)");
57+
printf("ErrorStorage& ErrorStorage::operator=(ErrorStorage&& other)\n");
5858
m_err = std::move(other.m_err);
5959
m_message_buf = std::move(other.m_message_buf);
6060
if (m_err) {
@@ -77,7 +77,7 @@ bool ErrorStorage::operator==(const ErrorStorage& other) const noexcept
7777

7878
void ErrorStorage::assign(std::exception_ptr eptr) noexcept
7979
{
80-
printf("void ErrorStorage::assign(std::exception_ptr eptr) noexcept");
80+
printf("void ErrorStorage::assign(std::exception_ptr eptr) noexcept\n");
8181
if (!eptr) {
8282
clear();
8383
return;
@@ -152,7 +152,7 @@ bool ErrorStorage::has_error() const noexcept
152152

153153
bool ErrorStorage::get_as_realm_error_t(realm_error_t* out) const noexcept
154154
{
155-
printf("bool ErrorStorage::get_as_realm_error_t(realm_error_t* out) const noexcept");
155+
printf("bool ErrorStorage::get_as_realm_error_t(realm_error_t* out) const noexcept\n");
156156
if (!m_err) {
157157
return false;
158158
}
@@ -172,7 +172,7 @@ bool ErrorStorage::clear() noexcept
172172

173173
void ErrorStorage::set_usercode_error(void* usercode_error)
174174
{
175-
printf("setting usercode_error ptr %p", usercode_error);
175+
printf("setting usercode_error ptr %p\n", usercode_error);
176176
m_usercode_error = usercode_error;
177177
}
178178

@@ -185,7 +185,7 @@ void* ErrorStorage::get_and_clear_usercode_error()
185185

186186
ErrorStorage* ErrorStorage::get_thread_local()
187187
{
188-
printf("ErrorStorage* ErrorStorage::get_thread_local()");
188+
printf("ErrorStorage* ErrorStorage::get_thread_local()\n");
189189
#if !defined(RLM_NO_THREAD_LOCAL)
190190
static thread_local ErrorStorage g_error_storage;
191191
return &g_error_storage;
@@ -250,6 +250,6 @@ RLM_EXPORT bool realm_wrap_exceptions(void (*func)()) noexcept
250250

251251
RLM_API void realm_register_user_code_callback_error(void* usercode_error) noexcept
252252
{
253-
printf("RLM_API void realm_register_user_code_callback_error(void* usercode_error) noexcept");
253+
printf("RLM_API void realm_register_user_code_callback_error(void* usercode_error) noexcept\n");
254254
realm::c_api::ErrorStorage::get_thread_local()->set_usercode_error(usercode_error);
255255
}

src/realm/object-store/c_api/types.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ struct realm_async_error : realm::c_api::WrapC {
119119
explicit realm_async_error(std::exception_ptr ep)
120120
: error_storage(std::move(ep))
121121
{
122-
printf("explicit realm_async_error(std::exception_ptr ep)");
122+
printf("explicit realm_async_error(std::exception_ptr ep)\n");
123123
}
124124

125125
realm_async_error* clone() const override

0 commit comments

Comments
 (0)