lua.c
changeset 110 bd9f24178d67
parent 109 2d2111cb5109
child 112 15f4c09ffb86
equal deleted inserted replaced
109:2d2111cb5109 110:bd9f24178d67
  1092 		return;
  1092 		return;
  1093 
  1093 
  1094 	lua_rawgeti (L, LUA_REGISTRYINDEX, cb -> nameref);
  1094 	lua_rawgeti (L, LUA_REGISTRYINDEX, cb -> nameref);
  1095 	name = lua_tostring (L, -1);
  1095 	name = lua_tostring (L, -1);
  1096 	cmd_del (name);
  1096 	cmd_del (name);
       
  1097 	luaL_unref (L, LUA_REGISTRYINDEX, cb -> nameref);
       
  1098 	cb -> nameref = LUA_NOREF;
  1097 	lua_pop (L, 1);
  1099 	lua_pop (L, 1);
  1098 #endif
  1100 #endif
  1099 }
  1101 }
  1100 
  1102 
  1101 /// command:del
  1103 /// command:del