Fixed compile error under Windows.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3625 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
parent
a764ae56da
commit
2918deeccc
@ -426,6 +426,7 @@ void OOJSUnreachable(const char *function, const char *file, unsigned line) NO_
|
||||
// These introduce a scope to ensure proper nesting.
|
||||
#define OOJS_PROFILE_ENTER {
|
||||
#define OOJS_PROFILE_EXIT_VAL(rval) } return (rval);
|
||||
#define OOJS_PROFILE_EXIT_VAL_VOID } return;
|
||||
|
||||
#define OOJS_NATIVE_ENTER(cx) OOJS_PROFILE_ENTER
|
||||
#define OOJS_NATIVE_EXIT OOJS_PROFILE_EXIT_VAL(NO)
|
||||
@ -434,7 +435,7 @@ void OOJSUnreachable(const char *function, const char *file, unsigned line) NO_
|
||||
|
||||
|
||||
#define OOJS_PROFILE_EXIT OOJS_PROFILE_EXIT_VAL(NO)
|
||||
#define OOJS_PROFILE_EXIT_VOID return; OOJS_PROFILE_EXIT_VAL()
|
||||
#define OOJS_PROFILE_EXIT_VOID OOJS_PROFILE_EXIT_VAL_VOID
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user