C++: Add MethodInfo to scaffolding output (#84)
This commit is contained in:
@@ -1187,10 +1187,12 @@ EndGlobal
|
||||
|
||||
// Application-specific functions
|
||||
#define DO_APP_FUNC(a, r, n, p) extern r (*n) p
|
||||
#define DO_APP_FUNC_METHODINFO(a, n) extern struct MethodInfo * n
|
||||
namespace app {
|
||||
#include "il2cpp-functions.h"
|
||||
}
|
||||
#undef DO_APP_FUNC
|
||||
#undef DO_APP_FUNC_METHODINFO
|
||||
|
||||
// TypeInfo pointers
|
||||
#define DO_TYPEDEF(a, n) extern n ## __Class** n ## __TypeInfo
|
||||
@@ -1216,10 +1218,12 @@ namespace app {
|
||||
|
||||
// Application-specific functions
|
||||
#define DO_APP_FUNC(a, r, n, p) r (*n) p
|
||||
#define DO_APP_FUNC_METHODINFO(a, n) struct MethodInfo * n
|
||||
namespace app {
|
||||
#include "il2cpp-functions.h"
|
||||
}
|
||||
#undef DO_APP_FUNC
|
||||
#undef DO_APP_FUNC_METHODINFO
|
||||
|
||||
// TypeInfo pointers
|
||||
#define DO_TYPEDEF(a, n) n ## __Class** n ## __TypeInfo
|
||||
@@ -1243,8 +1247,10 @@ void init_il2cpp()
|
||||
|
||||
// Define function addresses
|
||||
#define DO_APP_FUNC(a, r, n, p) n = (r (*) p)(baseAddress + a)
|
||||
#define DO_APP_FUNC_METHODINFO(a, n) n = (struct MethodInfo *)(baseAddress + a)
|
||||
#include "il2cpp-functions.h"
|
||||
#undef DO_APP_FUNC
|
||||
#undef DO_APP_FUNC_METHODINFO
|
||||
|
||||
// Define TypeInfo variables
|
||||
#define DO_TYPEDEF(a, n) n ## __TypeInfo = (n ## __Class**) (baseAddress + a);
|
||||
|
||||
Reference in New Issue
Block a user