From: Dale Weiler Date: Mon, 17 Dec 2012 15:46:07 +0000 (+0000) Subject: Finally fix the bug in -D X-Git-Tag: 0.1.9~82 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c1a4c8102e9f3fe1ae68b6cafd6546c1a4dcdcf6;p=xonotic%2Fgmqcc.git Finally fix the bug in -D --- diff --git a/main.c b/main.c index 1bb9883..871e3e7 100644 --- a/main.c +++ b/main.c @@ -637,13 +637,15 @@ int main(int argc, char **argv) { util_debug("COM", "starting ...\n"); /* add macros */ - for (itr = 0; itr < vec_size(ppems); itr++) { - ftepp_add_macro(ppems[itr].name, ppems[itr].value); - mem_d(ppems[itr].name); + if (opts.pp_only || OPTS_FLAG(FTEPP)) { + for (itr = 0; itr < vec_size(ppems); itr++) { + ftepp_add_macro(ppems[itr].name, ppems[itr].value); + mem_d(ppems[itr].name); - /* can be null */ - if (ppems[itr].value) - mem_d(ppems[itr].value); + /* can be null */ + if (ppems[itr].value) + mem_d(ppems[itr].value); + } } if (!vec_size(items)) {