Fix RCT2_CALLFUNC

This commit is contained in:
Matthias Lanzinger 2014-04-27 04:22:50 +02:00
parent 781d0fdf26
commit d9f0225ee7

View file

@ -26,7 +26,7 @@
#define RCT2_ADDRESS(address, type) ((type*)(address))
#define RCT2_GLOBAL(address, type) (*((type*)(address)))
#define RCT2_CALLPROC(address) (((void(*)())(address))())
#define RCT2_CALLFUNC(address, returnType) ((((returnType)(*)())(address))())
#define RCT2_CALLFUNC(address, returnType) (((returnType(*)())(address))())
#define RCT2_CALLFUNC_1(address, returnType, a1, v1) (((returnType(*)(a1))(address))(v1))
#define RCT2_CALLFUNC_2(address, returnType, a1, a2, v1, v2) (((returnType(*)(a1, a2))(address))(v1, v2))