Added new .VERSION constant

git-svn-id: svn://svn.cc65.org/cc65/trunk@2280 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2003-08-12 15:11:55 +00:00
parent 591f3f39ba
commit fcfaaee3a9
4 changed files with 10 additions and 0 deletions

View File

@@ -41,6 +41,7 @@
#include "exprdefs.h"
#include "print.h"
#include "tgttrans.h"
#include "version.h"
#include "xmalloc.h"
/* ca65 */
@@ -666,6 +667,12 @@ static ExprNode* Factor (void)
NextTok ();
break;
case TOK_VERSION:
N = GenLiteralExpr (VERSION);
NextTok ();
break;
case TOK_XMATCH:
N = Function (FuncXMatch);
break;