Signed-off-by: Tomek Grabiec <[email protected]>
---
include/vm/call.h | 22 +++++++++++++---------
1 files changed, 13 insertions(+), 9 deletions(-)
diff --git a/include/vm/call.h b/include/vm/call.h
index c6e6f39..d0238ba 100644
--- a/include/vm/call.h
+++ b/include/vm/call.h
@@ -18,15 +18,15 @@ unsigned long vm_call_method_this_a(struct vm_method
*method,
unsigned long *args);
unsigned long vm_call_method_a(struct vm_method *method, unsigned long *args);
-#define DECLARE_VM_CALL_METHOD(type, suffix) \
- static inline type \
- vm_call_method##suffix(struct vm_method *method, ...) \
+#define DECLARE_VM_CALL_METHOD(type) \
+ static inline j ## type \
+ vm_call_method_ ## type(struct vm_method *method, ...) \
{ \
- type result; \
+ j ## type result; \
va_list args; \
\
va_start(args, method); \
- result = (type)vm_call_method_v(method, args); \
+ result = (j ## type)vm_call_method_v(method, args); \
va_end(args); \
\
return result; \
@@ -41,9 +41,13 @@ static inline void vm_call_method(struct vm_method *method,
...)
va_end(args);
}
-DECLARE_VM_CALL_METHOD(unsigned long, _ulong);
-DECLARE_VM_CALL_METHOD(struct vm_object *, _object);
-DECLARE_VM_CALL_METHOD(jint, _jint);
-DECLARE_VM_CALL_METHOD(jboolean, _jboolean);
+DECLARE_VM_CALL_METHOD(byte);
+DECLARE_VM_CALL_METHOD(boolean);
+DECLARE_VM_CALL_METHOD(double);
+DECLARE_VM_CALL_METHOD(float);
+DECLARE_VM_CALL_METHOD(long);
+DECLARE_VM_CALL_METHOD(short);
+DECLARE_VM_CALL_METHOD(object);
+DECLARE_VM_CALL_METHOD(int);
#endif
--
1.6.0.6
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Jatovm-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jatovm-devel