]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - ftepp.c
Make ftepps __NULL__ translate to gmqccs untyped nil keyword (this isn't correct...
[xonotic/gmqcc.git] / ftepp.c
diff --git a/ftepp.c b/ftepp.c
index b07899a327e936ba45771ccb46c9f01b3940cc0b..7d5ba3e7b0e05dc867a9cd448098909ca07c0c70 100755 (executable)
--- a/ftepp.c
+++ b/ftepp.c
@@ -1828,6 +1828,12 @@ ftepp_t *ftepp_create()
     ftepp_add_macro(ftepp, "__STD_VERSION_MINOR__", minor);
     ftepp_add_macro(ftepp, "__STD_VERSION_MAJOR__", major);
 
+    /*
+     * We're going to just make __NULL__ nil, which works for 60% of the
+     * cases of __NULL_ for fteqcc.
+     */
+    ftepp_add_macro(ftepp, "__NULL__", "nil");
+
     return ftepp;
 }