mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-20 18:32:01 +00:00
pragma line(lineno) - sets the linenumber for the line after the pragma
This commit is contained in:
parent
e66f2bcb33
commit
a5dbfacf2f
1 changed files with 3 additions and 0 deletions
3
lexer.c
3
lexer.c
|
@ -414,6 +414,9 @@ static bool lex_try_pragma(lex_file *lex)
|
|||
lex->name = util_strdup(param);
|
||||
vec_push(lex_filenames, lex->name);
|
||||
}
|
||||
else if (!strcmp(command, "line")) {
|
||||
line = strtol(param, NULL, 0)-1;
|
||||
}
|
||||
else
|
||||
goto unroll;
|
||||
|
||||
|
|
Loading…
Reference in a new issue