fakir/libstd/fun.cpp

27 lines
390 B
C++
Raw Normal View History

2023-09-20 15:17:13 +00:00
#include "fun.hpp"
namespace fkstd
{
STDRET println(STDARGS args)
{
std::string sep;
for (auto arg: args)
{
std::cout << sep << arg->string();
sep = " ";
}
Loc loc {"???"};
if (args.size() > 0)
{
loc = args.front()->loc();
}
std::cout << std::endl;
return std::make_shared<Constant>(TYPE_INT, 0, loc);
}
}