This repository has been archived on 2023-09-10. You can view files and clone it, but cannot push or open issues/pull-requests.
joko/core/core.cpp

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();
});
}