lm_proxy.c
changeset 16 09b375e9ce32
parent 12 63f06a23c235
child 19 d775d7289fe4
equal deleted inserted replaced
15:1a5dd51722f5 16:09b375e9ce32
   168 	lua_pushstring (L, "__index");
   168 	lua_pushstring (L, "__index");
   169 	lua_pushvalue (L, -2);
   169 	lua_pushvalue (L, -2);
   170 	lua_settable (L, -3);
   170 	lua_settable (L, -3);
   171 	luaL_register (L, NULL, reg_m_lm_proxy);
   171 	luaL_register (L, NULL, reg_m_lm_proxy);
   172 	lua_pop (L, 1);
   172 	lua_pop (L, 1);
   173 	luaL_register (L, "lm.proxy", reg_f_lm_proxy);
   173 	lua_newtable (L); // XXX we can specify here exact amount of fields
       
   174 	luaL_register (L, NULL, reg_f_lm_proxy);
   174 	return 1;
   175 	return 1;
   175 }
   176 }
   176 
   177