mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2025-12-09 16:43:51 +00:00
7 lines
264 B
Plaintext
7 lines
264 B
Plaintext
/**
|
|
* NAMEOF: Compile time checked variable name to string conversion
|
|
* evaluates to a string equal to "X", but compile errors if X isn't a var on datum.
|
|
* datum may be null, but it does need to be a typed var.
|
|
**/
|
|
#define NAMEOF(datum, X) (#X || ##datum.##X)
|