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

Function main

tests/lua_lifetime/source/main.cpp:5–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3sol::function fn;
4
5int main(int, char*[]) {
6 sol::state lua;
7 lua.open_libraries(sol::lib::base);
8 fn = lua["print"];
9 fn.abandon();
10 return 0;
11}

Callers

nothing calls this directly

Calls 2

open_librariesMethod · 0.80
abandonMethod · 0.45

Tested by

no test coverage detected