sol2/examples/source/tutorials/open_multiple_libraries.cpp
2019-07-04 11:16:03 -04:00

12 lines
263 B
C++

#define SOL_ALL_SAFETIES_ON 1
#include <sol/sol.hpp>
int main(int argc, char* argv[]) {
sol::state lua;
lua.open_libraries(sol::lib::base, sol::lib::coroutine, sol::lib::string, sol::lib::io);
lua.script("print('bark bark bark!')");
return 0;
}