mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-09 16:05:07 +00:00
* Optimize cardboard cutouts saving 1.5s+ on init times (#73404) New regression in init times. Closes https://github.com/tgstation/dev-cycles-initiative/issues/32. CC @ Fikou - Instead of creating a human and icon for *every* cardboard cutout when initialized, only creates the one we're actually using. When you're about to use a crayon, creates all of them. - Instead of using getFlatIcon, uses appearances directly. * Optimize cardboard cutouts saving 1.5s+ on init times --------- Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
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]"
|