Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
3
sol::function fn;
4
5
int 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_libraries
Method · 0.80
abandon
Method · 0.45
Tested by
no test coverage detected