Compiler: Change __line to __LINE__.
This commit is contained in:
parent
27825963f6
commit
c2ca5d857d
|
@ -1451,7 +1451,7 @@ static void setconstants(void)
|
|||
add_constant("ucharmax",(1 << (sizeof(cell)-1)*8)-1,sGLOBAL,0);
|
||||
|
||||
add_constant("__Pawn",VERSION_INT,sGLOBAL,0);
|
||||
add_constant("__line", 0, sGLOBAL, 0);
|
||||
add_constant("__LINE__", 0, sGLOBAL, 0);
|
||||
|
||||
pc_anytag=pc_addtag("any");
|
||||
|
||||
|
|
|
@ -362,7 +362,7 @@ static void readline(unsigned char *line)
|
|||
line+=strlen((char*)line);
|
||||
} /* if */
|
||||
fline+=1;
|
||||
sym=findconst("__line");
|
||||
sym=findconst("__LINE__");
|
||||
assert(sym!=NULL);
|
||||
sym->addr=fline;
|
||||
} while (num>=0 && cont);
|
||||
|
|
Loading…
Reference in New Issue
Block a user