add native class struct

This commit is contained in:
pikastech 2022-10-14 23:46:23 +08:00
parent c0f1482007
commit fcec043332

View File

@ -66,6 +66,20 @@ struct ByteCodeFrame {
InstructArray instruct_array;
};
typedef struct NativeMethod {
const Hash hash;
const char* name;
const char* pars;
const void* funPtr;
} NativeMethod;
typedef struct NativeClass NativeClass;
struct NativeClass {
const NativeClass* super;
const NativeMethod* methodGroup;
uint32_t methodGroupCount;
};
typedef struct PikaObj PikaObj;
struct PikaObj {
Args* list;