aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sol2/examples/source/tutorials/open_multiple_libraries.cpp
blob: eab0a2bd4fdd7ef4587d6b7f30ca8fe64a81fef9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#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;
}