| 138 | } |
| 139 | |
| 140 | void ExtensionPoint::Initialize(lua_State* L) |
| 141 | { |
| 142 | lua_pushglobaltable(L); |
| 143 | lua_pushstring(L, "emmyHelperInit"); |
| 144 | lua_pushcfunction(L, emmyHelperInit); |
| 145 | lua_rawset(L, -3); |
| 146 | lua_pop(L, 1); |
| 147 | |
| 148 | // EMMY_META |
| 149 | lua_pushstring(L, "EMMY_META"); |
| 150 | lua_newtable(L); |
| 151 | lua_pushcfunction(L, metaIndex); |
| 152 | lua_setfield(L, -2, "__index"); |
| 153 | |
| 154 | lua_pushcfunction(L, metaNewIndex); |
| 155 | lua_setfield(L, -2, "__newindex"); |
| 156 | |
| 157 | lua_rawset(L, LUA_REGISTRYINDEX); |
| 158 | } |
| 159 | |
| 160 | bool ExtensionPoint::QueryVariableGeneric(lua_State* L, Idx<Variable> variable, const char* typeName, int object, |
| 161 | int depth, const char* queryFunction) |
no test coverage detected