Compiler: Change __line to __LINE__.

This commit is contained in:
Arkshine 2014-08-17 11:16:29 +02:00
parent 27825963f6
commit c2ca5d857d
2 changed files with 2 additions and 2 deletions

View File

@ -1451,7 +1451,7 @@ static void setconstants(void)
add_constant("ucharmax",(1 << (sizeof(cell)-1)*8)-1,sGLOBAL,0); add_constant("ucharmax",(1 << (sizeof(cell)-1)*8)-1,sGLOBAL,0);
add_constant("__Pawn",VERSION_INT,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"); pc_anytag=pc_addtag("any");

View File

@ -362,7 +362,7 @@ static void readline(unsigned char *line)
line+=strlen((char*)line); line+=strlen((char*)line);
} /* if */ } /* if */
fline+=1; fline+=1;
sym=findconst("__line"); sym=findconst("__LINE__");
assert(sym!=NULL); assert(sym!=NULL);
sym->addr=fline; sym->addr=fline;
} while (num>=0 && cont); } while (num>=0 && cont);