3 #if !defined(__cpp_exceptions) && !defined(__EMSCRIPTEN__)
13 inline void assertImpl(
bool condition,
const char* message)
17 #ifdef __cpp_exceptions
18 throw std::runtime_error(message);
19 #elif defined(__EMSCRIPTEN__)
20 Nui::val::global(
"console").call<
void>(
"error", message);
22 std::cerr << message << std::endl;
29 # define NUI_ASSERT(condition, message)
31 # define NUI_ASSERT(condition, message) assertImpl(condition, message)
Definition: file_dialog.hpp:6
void assertImpl(bool condition, const char *message)
Definition: assert.hpp:13