mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-01-28 09:52:38 +00:00
* TGUI Say * Add icon_ref_map.json to make tgui-dev-server stop screaming * Update tgui.bundle.js * bundle recompile --------- Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com> Co-authored-by: Heroman <alesha3000@list.ru>
14 lines
391 B
Plaintext
14 lines
391 B
Plaintext
#undef ASSERT
|
|
|
|
/// Override BYOND's native ASSERT to optionally specify a message
|
|
#define ASSERT(condition, message...) \
|
|
if (!(condition)) { \
|
|
CRASH(assertion_message(__FILE__, __LINE__, #condition, ##message)) \
|
|
}
|
|
|
|
/proc/assertion_message(file, line, condition, message)
|
|
if (!isnull(message))
|
|
message = " - [message]"
|
|
|
|
return "[file]:[line]:Assertion failed: [condition][message]"
|