5 lines
1.8 KiB
HTML
5 lines
1.8 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><base href="../../"><link rel="stylesheet" href="dmdoc.css"><title>code/__HELPERS/nameof.dm - /tg/ Station 13</title></head><body><header><a href="index.html">/tg/ Station 13</a> - <a href="index.html#modules">Modules</a> - <a href="index.html#types">Types</a> — <a href="code/__HELPERS/nameof.html#define">Define Details</a></header><main><h1>code/__HELPERS/nameof.dm <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/__HELPERS/nameof.dm0"><img src="git.png" width="16" height="16" title="code/__HELPERS/nameof.dm0"></a></h1><table class="summary" cellspacing="0"><tr><th><a href="code/__HELPERS/nameof.html#define/NAMEOF">NAMEOF</a></th><td>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.</td></tr></table><h2 id="define">Define Details</h2><h3 id="define/NAMEOF"><aside class="declaration">#define </aside>NAMEOF<aside>(datum, X)</aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/__HELPERS/nameof.dm#L6"><img src="git.png" width="16" height="16" title="code/__HELPERS/nameof.dm 6"></a></h3><p>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.</p></main><footer>tgstation.dme <a href="https://github.com/evilew/GS13-Citadel/tree/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e">e8e0068</a> (master) — <a href="https://github.com/SpaceManiac/SpacemanDMM/blob/master/crates/dmdoc/README.md">dmdoc 1.9.0</a></footer></body></html> |