mirror of
https://github.com/CPunch/Cosmo.git
synced 2026-01-04 14:30:06 +00:00
added support for __newindex
This commit is contained in:
@@ -42,6 +42,8 @@ CState *cosmoV_newState() {
|
||||
// setup all strings used by the VM
|
||||
state->iStrings[ISTRING_INIT] = cosmoO_copyString(state, "__init", 6);
|
||||
state->iStrings[ISTRING_INDEX] = cosmoO_copyString(state, "__index", 7);
|
||||
state->iStrings[ISTRING_NEWINDEX] = cosmoO_copyString(state, "__newindex", 10);
|
||||
|
||||
return state;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user