1 #ifndef f_SYLIA_SCRIPTERROR_H
2 #define f_SYLIA_SCRIPTERROR_H
15 TYPE_FUNCTION_REQUIRED
,
18 OBJECT_MEMBER_NAME_REQUIRED
,
24 OVERLOADED_FUNCTION_NOT_FOUND
,
28 CLOSEBRACKET_EXPECTED
,
42 CScriptError(int err_num
) : err(err_num
) { }
44 int getErr() { return err
; }
47 #define SCRIPT_ERROR(x) throw CScriptError(CScriptError::##x)
49 extern "C" __declspec(dllexport
) char * __stdcall
TranslateScriptError(int);
51 char inline *TranslateScriptError(CScriptError cse
) {
52 return TranslateScriptError(cse
.getErr());