20 lines
578 B
C++
20 lines
578 B
C++
#include "common.hpp"
|
|
#include "fun.hpp"
|
|
|
|
extern "C" void lib(Zarn& zarn)
|
|
{
|
|
zarn.register_function("println",
|
|
std::make_shared<Prototype>()
|
|
->param_any()
|
|
->param_variadic()
|
|
->ret(TYPE_NIL),
|
|
println);
|
|
|
|
zarn.register_function("assert=",
|
|
std::make_shared<Prototype>()
|
|
->param_any()
|
|
->param_any()
|
|
->ret(TYPE_NIL),
|
|
assert_eq);
|
|
}
|