small extensions to native code

This commit is contained in:
Julian Dolby 2017-07-13 21:20:48 +00:00
parent 0e6b00e29f
commit 0aadaa7aa0
2 changed files with 10 additions and 1 deletions

View File

@ -123,6 +123,8 @@ public:
CAstWrapper(JNIEnv *env, Exceptions &ex, jobject Ast);
virtual ~CAstWrapper() { }
void assertIsCAstNode(jobject, int);
jobject makeNode(int);

View File

@ -37,7 +37,14 @@ extern "C" {
#define CATCH() \
} \
} \
}
#define START_CATCH_BLOCK() \
} else {
#define END_CATCH_BLOCK() \
} \
}
#define THROW(CPP_EXP_NAME, MESSAGE) \
(CPP_EXP_NAME).throwException(__FILE__, __LINE__, MESSAGE)