| 652 | } |
| 653 | |
| 654 | HContext GetScriptContext(lua_State* L) |
| 655 | { |
| 656 | GetGlobal(L, SCRIPT_CONTEXT_HASH); |
| 657 | HContext context = (HContext)lua_touserdata(L, -1); |
| 658 | lua_pop(L, 1); |
| 659 | return context; |
| 660 | } |
| 661 | |
| 662 | uint32_t SetGlobal(lua_State* L, const char* name) |
| 663 | { |
no test coverage detected