Reimplemented 'print', channeled it through PrintBuffer

This commit is contained in:
2021-10-21 14:22:06 -04:00
parent 2d08b44c03
commit b5d62d3991
4 changed files with 86 additions and 44 deletions

View File

@@ -329,7 +329,7 @@ public:
L_ = L;
count_slots<0, 0, 0>(stackslots...);
if (lua_gettop(L) < narg_) {
luaL_error(L, "not enough arguments on stack");
luaL_error(L, "not enough arguments to function");
}
assign_slots(argpos_, varpos_, retpos_, stackslots...);
clear_frame();