sol2/tests/lua_lifetime/source/main.cpp
ThePhD 002233ba84
Proper read-only pair iteration!
🔨 Fix up the general build
2021-10-22 16:17:49 -04:00

12 lines
181 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;
}