diff --git a/compiler/libpc300/sc1.c b/compiler/libpc300/sc1.c index e28eea2b..c6eff2e8 100755 --- a/compiler/libpc300/sc1.c +++ b/compiler/libpc300/sc1.c @@ -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"); diff --git a/compiler/libpc300/sc2.c b/compiler/libpc300/sc2.c index 46ba78e0..e3bde15b 100755 --- a/compiler/libpc300/sc2.c +++ b/compiler/libpc300/sc2.c @@ -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);