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

Function main

examples/source/tutorials/first_snippet.cpp:4–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

open_librariesMethod · 0.80
scriptMethod · 0.80

Tested by

no test coverage detected