Compiler: Add __line

Imported from SA-MP: https://github.com/Zeex/pawn/commit/605ae7f4d3530640f50c2d5d59668deb0db15079
This is a backport from Pawn 4.0. It sets to the current line number during compile time.
Documention for 3.x actually mention this.
This commit is contained in:
Arkshine
2014-08-26 09:04:55 +02:00
parent fcdeea683b
commit 1866afd80b
2 changed files with 6 additions and 1 deletions
+2 -1
View File
@@ -1449,7 +1449,8 @@ 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);
pc_anytag=pc_addtag("any");
debug=0;