20 lines
349 B
C++
20 lines
349 B
C++
|
#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();
|
||
|
});
|
||
|
}
|