| 344 | } |
| 345 | |
| 346 | void LuaEnvironment::do_file(const char *name) |
| 347 | { |
| 348 | int status; |
| 349 | |
| 350 | lua_getglobal(L, "dofile"); |
| 351 | lua_pushstring(L, name); |
| 352 | status = this->call(1, 0); |
| 353 | if (status != LUA_OK) { |
| 354 | report(L, status); |
| 355 | device()->pause(); |
| 356 | } |
| 357 | |
| 358 | CE_ASSERT(lua_gettop(L) == 0, "Stack not clean"); |
| 359 | } |
| 360 | |
| 361 | LuaStack LuaEnvironment::require(const char *name, int nres) |
| 362 | { |
nothing calls this directly
no test coverage detected