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

Method destroy

examples/source/usertype_initializers.cpp:43–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 }
42
43 static void destroy(holy& memory_from_lua) {
44 std::cout << "destroying 'holy' userdata at "
45 << static_cast<void*>(&memory_from_lua)
46 << std::endl;
47 memory_from_lua.~holy();
48 }
49};
50
51int main() {

Callers

nothing calls this directly

Calls 1

~holyMethod · 0.80

Tested by

no test coverage detected