mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
add native class struct
This commit is contained in:
parent
c0f1482007
commit
fcec043332
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user