(argCount = 0)
| 69 | } |
| 70 | |
| 71 | public resume(argCount = 0): LuaResumeResult { |
| 72 | const dataPointer = this.lua.module._malloc(PointerSize) |
| 73 | try { |
| 74 | this.lua.module.setValue(dataPointer, 0, 'i32') |
| 75 | const luaResult = this.lua.lua_resume(this.address, null, argCount, dataPointer) |
| 76 | return { |
| 77 | result: luaResult, |
| 78 | resultCount: this.lua.module.getValue(dataPointer, 'i32'), |
| 79 | } |
| 80 | } finally { |
| 81 | this.lua.module._free(dataPointer) |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | public getTop(): number { |
| 86 | return this.lua.lua_gettop(this.address) |
no test coverage detected