Signed-off-by: Tomek Grabiec <[email protected]>
---
include/vm/stack-trace.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/vm/stack-trace.h b/include/vm/stack-trace.h
index f6db886..f326c41 100644
--- a/include/vm/stack-trace.h
+++ b/include/vm/stack-trace.h
@@ -82,10 +82,10 @@ static inline void *vm_native_stack_get_frame(void)
* optimizations might optimize some function calls so that the target
* function runs in the caller's frame. We want to avoid this situation.
*/
-#define enter_vm_from_jni() { \
+#define enter_vm_from_jni() do { \
jni_stack[jni_stack_index() - 1].vm_frame = \
__builtin_frame_address(0); \
- }
+ } while (0)
/*
--
1.6.0.6
------------------------------------------------------------------------------
_______________________________________________
Jatovm-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jatovm-devel