| 4 | #include <cstdio> |
| 5 | |
| 6 | bool 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 | |
| 15 | int main() { |
| 16 | sol::state lua; |
nothing calls this directly
no outgoing calls
no test coverage detected