mirror of
https://github.com/CPunch/Cosmo.git
synced 2025-12-31 13:10:07 +00:00
CObjMethod refactor
This commit is contained in:
@@ -71,11 +71,7 @@ typedef struct CObjClosure {
|
||||
typedef struct CObjMethod {
|
||||
CommonHeader; // "is a " CObj
|
||||
CObjObject *obj; // obj this method is bound too
|
||||
union {
|
||||
CObjClosure *closure;
|
||||
CObjCFunction *cfunc;
|
||||
};
|
||||
bool isCFunc;
|
||||
CValue func;
|
||||
} CObjMethod;
|
||||
|
||||
typedef struct CObjUpval {
|
||||
|
||||
Reference in New Issue
Block a user