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

Function is_file_std_out

examples/source/lua_stream.cpp:6–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include <cstdio>
5
6bool is_file_std_out(sol::table data) {
7 sol::object maybe_file = data["file"];
8 if (maybe_file.is<luaL_Stream&>()) {
9 luaL_Stream& filestream = data["file"];
10 return filestream.f == stdout;
11 }
12 return false;
13}
14
15int main() {
16 sol::state lua;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected