| 2060 | }; |
| 2061 | |
| 2062 | staticfn void |
| 2063 | init_u_data(lua_State *L) |
| 2064 | { |
| 2065 | lua_newtable(L); |
| 2066 | luaL_setfuncs(L, nhl_u_functions, 0); |
| 2067 | lua_newtable(L); |
| 2068 | lua_pushcfunction(L, nhl_meta_u_index); |
| 2069 | lua_setfield(L, -2, "__index"); |
| 2070 | lua_pushcfunction(L, nhl_meta_u_newindex); |
| 2071 | lua_setfield(L, -2, "__newindex"); |
| 2072 | lua_setmetatable(L, -2); |
| 2073 | lua_setglobal(L, "u"); |
| 2074 | } |
| 2075 | |
| 2076 | #ifdef notyet |
| 2077 | staticfn int |