This repository has been archived on 2023-09-10. You can view files and clone it, but cannot push or open issues/pull-requests.
2023-09-09 22:03:28 +00:00
|
|
|
#include "lib/Function.hpp"
|
|
|
|
#include "lib/Loader.hpp"
|
|
|
|
|
|
|
|
extern "C" void lib(jk::Loader& loader)
|
|
|
|
{
|
2023-09-10 06:06:34 +00:00
|
|
|
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();
|
|
|
|
});
|
2023-09-09 22:03:28 +00:00
|
|
|
}
|