1 #include "core/framebuffer.hpp"
2 #include "lua/internal.hpp"
6 function_ptr_luafun
lua_gui_screenshot(LS
, "gui.screenshot", [](lua_state
& L
, const std::string
& fname
) ->
8 std::string fn
= L
.get_string(1, fname
.c_str());
12 } catch(std::exception
& e
) {
13 L
.pushstring(e
.what());