From: Dale Weiler Date: Wed, 24 Apr 2013 04:17:17 +0000 (+0000) Subject: Make ftepps __NULL__ translate to gmqccs untyped nil keyword (this isn't correct... X-Git-Tag: before-library~18 X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=commitdiff_plain;h=35988b61919747a21d0b2cfd83076621082343a6 Make ftepps __NULL__ translate to gmqccs untyped nil keyword (this isn't correct behaviour of the __NULL__ constant, but it works) --- diff --git a/ftepp.c b/ftepp.c index b07899a..7d5ba3e 100755 --- 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; } diff --git a/misc/check-doc.sh b/misc/check-doc.sh old mode 100644 new mode 100755