From c2ca5d857d322d7f3f193deef8b613e6ff1d7cd0 Mon Sep 17 00:00:00 2001 From: Arkshine Date: Sun, 17 Aug 2014 11:16:29 +0200 Subject: [PATCH] Compiler: Change __line to __LINE__. --- compiler/libpc300/sc1.c | 2 +- compiler/libpc300/sc2.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);