mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-22 02:31:28 +00:00
recognize the simple case of __FUNC__ in the parser
This commit is contained in:
parent
8bee9a6819
commit
dcd65f18f8
1 changed files with 2 additions and 0 deletions
2
parser.c
2
parser.c
|
@ -1888,6 +1888,8 @@ static bool parse_sya_operand(parser_t *parser, shunt *sy, bool with_labels)
|
|||
vec_push(parser->labels, lbl);
|
||||
}
|
||||
}
|
||||
if (!var && !strcmp(parser_tokval(parser), "__FUNC__"))
|
||||
var = (ast_expression*)parser_const_string(parser, parser->function->name, false);
|
||||
if (!var) {
|
||||
/* intrinsics */
|
||||
if (!strcmp(parser_tokval(parser), "__builtin_debug_typestring")) {
|
||||
|
|
Loading…
Reference in a new issue