This commit is contained in:
Isuru Samarathunga
2025-10-05 01:50:51 +05:30
parent b38dc220be
commit 66299a7caf

View File

@ -131,7 +131,9 @@ private:
DO(SECURITY_BYPASS)
#define DEFINE_THROWER(name) \
template <typename... Args> NORETURN VOID THROW_##name(Args... args) { \
throw RuntimeException(ExceptionKind::name, BuildString(args...)); \
const auto msg = BuildString(args...); \
printf(#name " %s\n", msg.c_str()); \
throw RuntimeException(ExceptionKind::name, msg); \
}
FOR_EACH_RUNTIME_EXCEPT_TYPE(DEFINE_THROWER);
#undef DEFINE_THROWER