27 lines
390 B
C++
27 lines
390 B
C++
|
#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);
|
||
|
}
|
||
|
}
|