MCPcopy Create free account
hub / github.com/ThePhD/sol2 / unique_destroy

Function unique_destroy

include/sol/stack_core.hpp:445–452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected