added module names for functions

This commit is contained in:
2020-12-09 12:23:16 -06:00
parent 9aa7fa1381
commit 6445dae04c
7 changed files with 20 additions and 12 deletions

View File

@@ -112,6 +112,7 @@ CObjFunction *cosmoO_newFunction(CState *state) {
func->args = 0;
func->upvals = 0;
func->name = NULL;
func->module = NULL;
initChunk(state, &func->chunk, ARRAY_START);
return func;