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++
Raw Normal View History

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
}