From bf59f70598768d2243a521294156ff03da8fce5f Mon Sep 17 00:00:00 2001 From: CPunch Date: Sat, 12 Dec 2020 21:17:31 -0600 Subject: [PATCH] added IS_METHOD to IS_CALLABLE --- src/cobj.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cobj.h b/src/cobj.h index 9fe8b6e..48f54ee 100644 --- a/src/cobj.h +++ b/src/cobj.h @@ -113,7 +113,7 @@ static inline bool isObjType(CValue val, CObjType type) { // just protects against macro expansion static inline bool IS_CALLABLE(CValue val) { - return IS_CLOSURE(val) || IS_CFUNCTION(val); + return IS_CLOSURE(val) || IS_CFUNCTION(val) || IS_METHOD(val); } CObj *cosmoO_allocateBase(CState *state, size_t sz, CObjType type);