@@ -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
2323ErrorStorage::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
3333ErrorStorage& 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
5555ErrorStorage& 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
7878void 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
153153bool 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
173173void 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
186186ErrorStorage* 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
251251RLM_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}
0 commit comments