upd: remove nullptr from return value

This commit is contained in:
2023-11-10 07:12:55 +08:00
parent 647f53cadd
commit 33ae0c3367
2 changed files with 7 additions and 7 deletions

View File

@ -62,7 +62,7 @@ std::any FucntionContainer::CallFunction(const std::string &name,
std::cout << std::fixed << std::setprecision(6) << *value_ptr;
}
std::cout << '\n';
return nullptr;
return NoneType();
} else if (name == "str") {
if (args.size() != 1)
throw InterpretException(