| 2075 | |
| 2076 | #ifdef notyet |
| 2077 | staticfn int |
| 2078 | nhl_set_package_path(lua_State *L, const char *path) |
| 2079 | { |
| 2080 | if (LUA_TTABLE != lua_getglobal(L, "package")) { |
| 2081 | impossible("package not a table in nhl_set_package_path"); |
| 2082 | return 1; |
| 2083 | }; |
| 2084 | lua_pushstring(L, path); |
| 2085 | lua_setfield(L, -2, "path"); |
| 2086 | lua_pop(L, 1); |
| 2087 | return 0; |
| 2088 | } |
| 2089 | #endif |
| 2090 | |
| 2091 | staticfn int |
no test coverage detected