mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-27 14:12:36 +00:00
-g sets opts.g and -debug causes blocks to be labeled
This commit is contained in:
parent
b02c4e4d10
commit
4ef0e8c66e
2 changed files with 2 additions and 1 deletions
2
ast.c
2
ast.c
|
@ -1049,7 +1049,7 @@ const char* ast_function_label(ast_function *self, const char *prefix)
|
|||
size_t len;
|
||||
char *from;
|
||||
|
||||
if (!opts.dump && !opts.dumpfin)
|
||||
if (!opts.dump && !opts.dumpfin && !opts.debug)
|
||||
return NULL;
|
||||
|
||||
id = (self->labelcount++);
|
||||
|
|
1
main.c
1
main.c
|
@ -266,6 +266,7 @@ static bool options_parse(int argc, char **argv) {
|
|||
/* debug turns on -flno */
|
||||
case 'g':
|
||||
opts_setflag("LNO", true);
|
||||
opts.g = true;
|
||||
break;
|
||||
|
||||
case 'D':
|
||||
|
|
Loading…
Reference in a new issue