X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fsquirrel%2Fsquirrel%2Fsqcompiler.h;h=ed2a89baaceac7b2cd5300cefb592279b33ef4a2;hb=fea3446f05e1e7673607b835c269d3e8d1929ab3;hp=b3658be497e5e818cdfddab410d9bb7c89b3e52d;hpb=c81e5d255303f56a3fc33bef1fd0124c4b62cfcf;p=supertux.git diff --git a/src/squirrel/squirrel/sqcompiler.h b/src/squirrel/squirrel/sqcompiler.h index b3658be49..ed2a89baa 100644 --- a/src/squirrel/squirrel/sqcompiler.h +++ b/src/squirrel/squirrel/sqcompiler.h @@ -67,8 +67,9 @@ struct SQVM; #define TK_MODEQ 319 #define TK_ATTR_OPEN 320 #define TK_ATTR_CLOSE 321 +#define TK_STATIC 322 -struct ParserException{ SQChar *desc; ParserException(SQChar *err):desc(err) {} }; +typedef void(*CompilerErrorFunc)(void *ud, const SQChar *s); bool Compile(SQVM *vm, SQLEXREADFUNC rg, SQUserPointer up, const SQChar *sourcename, SQObjectPtr &out, bool raiseerror, bool lineinfo); #endif //_SQCOMPILER_H_