MCPcopy Create free account
hub / github.com/ThePhD/sol2 / main

Function main

examples/source/tutorials/open_multiple_libraries.cpp:4–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include <sol/sol.hpp>
3
4int main(int argc, char* argv[]) {
5 // silence unused warnings
6 (void)argc;
7 (void)argv;
8 sol::state lua;
9 lua.open_libraries(sol::lib::base,
10 sol::lib::coroutine,
11 sol::lib::string,
12 sol::lib::io);
13
14 lua.script("print('bark bark bark!')");
15
16 return 0;
17}

Callers

nothing calls this directly

Calls 2

open_librariesMethod · 0.80
scriptMethod · 0.80

Tested by

no test coverage detected