mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
57d9a05f88
- 🛠 Make sure the tutorials compile across platforms! - ✍ Redo quite a bit of the documentation
17 lines
339 B
C++
17 lines
339 B
C++
#define SOL_ALL_SAFETIES_ON 1
|
|
#include <sol/sol.hpp>
|
|
|
|
int main(int argc, char* argv[]) {
|
|
// silence unused warnings
|
|
(void)argc;
|
|
(void)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;
|
|
} |