pragma line(lineno) - sets the linenumber for the line after the pragma

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-11-18 15:32:03 +01:00
parent e66f2bcb33
commit a5dbfacf2f

View file

@ -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;