iw7-mod/deps/sol2/tests/lua_lifetime/source/main.cpp
2024-08-13 05:15:34 -04:00

12 lines
170 B
C++

#include <sol/sol.hpp>
sol::function fn;
int main(int, char*[]) {
sol::state lua;
lua.open_libraries(sol::lib::base);
fn = lua["print"];
fn.abandon();
return 0;
}