CObjMethod refactor

This commit is contained in:
2020-11-17 15:07:56 -06:00
parent e6a377dfd0
commit aaed92424f
5 changed files with 40 additions and 36 deletions

View File

@@ -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 {