23 lines
385 B
C++
23 lines
385 B
C++
#include "lib/Function.hpp"
|
|
#include "lib/Loader.hpp"
|
|
|
|
extern "C" void lib(jk::Loader& loader)
|
|
{
|
|
loader.declare("dump", [](auto args){
|
|
std::string sep;
|
|
|
|
for (auto arg: args)
|
|
{
|
|
std::cout << sep << arg->string();
|
|
sep = " ";
|
|
}
|
|
|
|
if (args.empty() == false)
|
|
{
|
|
std::cout << std::endl;
|
|
}
|
|
|
|
return jk::Value::make_nil();
|
|
});
|
|
}
|