src/nexus_lua.c
changeset 202 210c43e6c088
parent 144 51f96539f9f3
child 207 3fa22abb5421
equal deleted inserted replaced
201:5c34c5d90a3f 202:210c43e6c088
    89 error:
    89 error:
    90     if (ret) {
    90     if (ret) {
    91         // build the error_info
    91         // build the error_info
    92         nexus_lua_error(lua->st, ret, err);
    92         nexus_lua_error(lua->st, ret, err);
    93 
    93 
    94         // pop it
    94         // pop the error message
    95         // XXX: err points at GC:able memory
    95         // XXX: err points at GC:able memory
    96         lua_pop(lua->st, 1);
       
    97     }
       
    98 
       
    99     if (loaded) {
       
   100         // pop off the chunk
       
   101         lua_pop(lua->st, 1);
    96         lua_pop(lua->st, 1);
   102     }
    97     }
   103 
    98 
   104     return ERROR_CODE(err);
    99     return ERROR_CODE(err);
   105 }
   100 }