From 76574c786026059c70d825aa097194b66eb9e4bb Mon Sep 17 00:00:00 2001 From: Inversion <40722286+NeoInversion@users.noreply.github.com> Date: Wed, 10 Feb 2021 22:14:31 -0800 Subject: [PATCH] Added cosmoV_readCString for convenience --- src/cobj.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cobj.h b/src/cobj.h index 6a77a6f..b5fde5f 100644 --- a/src/cobj.h +++ b/src/cobj.h @@ -120,6 +120,7 @@ typedef struct CObjUpval { #define IS_CLOSURE(x) isObjType(x, COBJ_CLOSURE) #define cosmoV_readString(x) ((CObjString*)cosmoV_readRef(x)) +#define cosmoV_readCString(x) (((CObjString*)cosmoV_readRef(x))->str) #define cosmoV_readObject(x) ((CObjObject*)cosmoV_readRef(x)) #define cosmoV_readTable(x) ((CObjTable*)cosmoV_readRef(x)) #define cosmoV_readFunction(x) ((CObjFunction*)cosmoV_readRef(x))