Add docs for luaopen_base

This commit is contained in:
2021-12-17 14:04:34 -05:00
parent 9b956f00e7
commit 0a1480d85c
5 changed files with 27 additions and 35 deletions

View File

@@ -33,12 +33,7 @@ void atomic_print(LuaStack &LS, LuaSlot val, bool quote, std::ostream *os) {
(*os) << (LS.ckboolean(val) ? "true" : "false");
return;
case LUA_TFUNCTION: {
std::string name = LS.get_function_name(val);
if (name.empty()) {
(*os) << "<fn>";
} else {
(*os) << "<fn." << name << ">";
}
(*os) << "<function>";
return;
}
default: