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

Function main

examples/source/lua_stream.cpp:15–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13}
14
15int main() {
16 sol::state lua;
17 lua.open_libraries(sol::lib::base, sol::lib::io);
18
19 lua["is_std_out"] = &is_file_std_out;
20 lua.script("assert(is_std_out{ file = io.stdout })");
21
22 return 0;
23}

Callers

nothing calls this directly

Calls 2

open_librariesMethod · 0.80
scriptMethod · 0.80

Tested by

no test coverage detected