This commit is contained in:
SandPoot
2024-08-09 20:13:26 -03:00
parent 7fcbcde764
commit 2a9182dfdf
3 changed files with 35 additions and 24 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
/// Adds an utf-8 header...? only ever used on circuitry so when wiremod arrives...
#define UTF8HEADER "<meta http-equiv='Content-Type' content='text/html; charset=UTF-8' /><meta http-equiv='X-UA-Compatible' content='IE=edge' />"
/// A shorthand for ternary operators to simulate a null-coalescing operator. Returns the first argument if its defined, otherwise, second.
#define NULL_COALESCE(var, default) ((var) ? (var) : (default))
#define NULL_COALESCE(var, default) (isnull(var) ? (default) : (var))