| 18426 | |
| 18427 | template <typename Reference, bool is_main_ref = false> |
| 18428 | static Reference get_default_handler(lua_State* L) { |
| 18429 | if (is_stack_based<Reference>::value || L == nullptr) |
| 18430 | return Reference(L, lua_nil); |
| 18431 | L = is_main_ref ? main_thread(L, L) : L; |
| 18432 | lua_getglobal(L, default_handler_name()); |
| 18433 | auto pp = stack::pop_n(L, 1); |
| 18434 | return Reference(L, -1); |
| 18435 | } |
| 18436 | |
| 18437 | template <typename T> |
| 18438 | static void set_default_handler(lua_State* L, const T& ref) { |
no test coverage detected