mirror of
https://github.com/CPunch/Cosmo.git
synced 2025-11-26 09:40:17 +00:00
cosmoV_register now uses the stack to pass params
This commit is contained in:
@@ -611,7 +611,7 @@ int cosmoV_execute(CState *state) {
|
||||
cosmoV_pushValue(state, cosmoV_newObj(state->iStrings[ISTRING_RESERVED])); // key
|
||||
cosmoV_pushValue(state, cosmoV_newObj(dict)); // value
|
||||
|
||||
cosmoV_pushLString(state, "__next", 6); // key
|
||||
cosmoV_pushString(state, "__next"); // key
|
||||
CObjCFunction *dict_next = cosmoO_newCFunction(state, _dict__next);
|
||||
cosmoV_pushValue(state, cosmoV_newObj(dict_next)); // value
|
||||
|
||||
|
||||
Reference in New Issue
Block a user