grino/lib/core.cpp

20 lines
349 B
C++
Raw Normal View History

2023-09-11 10:14:01 +00:00
#include "../src/Loader.hpp"
extern "C" void lib(grino::Loader& loader)
{
loader.add_native("dump", [](auto args){
std::string sep;
std::stringstream ss;
for (auto arg: args)
{
ss << sep << arg->string();
sep = " ";
}
std::cout << ss.str() << std::endl;
return grino::Value::make_nil();
});
}