| 443 | |
| 444 | template <typename T> |
| 445 | int unique_destroy(lua_State* L) noexcept { |
| 446 | void* memory = lua_touserdata(L, 1); |
| 447 | memory = align_usertype_unique_destructor(memory); |
| 448 | unique_destructor& dx = *static_cast<unique_destructor*>(memory); |
| 449 | memory = align_usertype_unique_tag<true>(memory); |
| 450 | (dx)(memory); |
| 451 | return 0; |
| 452 | } |
| 453 | |
| 454 | template <typename T> |
| 455 | int user_alloc_destroy(lua_State* L) noexcept { |
nothing calls this directly
no test coverage detected