multiple return value support added to VM

This commit is contained in:
2020-12-12 21:53:12 -06:00
parent bf59f70598
commit 48ceca1834
10 changed files with 84 additions and 56 deletions

View File

@@ -26,7 +26,7 @@ typedef enum {
#define readFlag(x, flag) (x & (1u << flag))
#define setFlagOn(x, flag) (x |= (1u << flag))
typedef CValue (*CosmoCFunction)(CState *state, int argCount, CValue *args);
typedef int (*CosmoCFunction)(CState *state, int argCount, CValue *args);
typedef struct CObj {
CObjType type;