h2-mod/deps/sol2/tests/lua_lifetime/source/main.cpp
2024-03-07 03:33:59 -05: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;
}