small extensions to native code
This commit is contained in:
parent
0e6b00e29f
commit
0aadaa7aa0
|
@ -123,6 +123,8 @@ public:
|
|||
|
||||
CAstWrapper(JNIEnv *env, Exceptions &ex, jobject Ast);
|
||||
|
||||
virtual ~CAstWrapper() { }
|
||||
|
||||
void assertIsCAstNode(jobject, int);
|
||||
|
||||
jobject makeNode(int);
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue