2024-03-27 10:49:10 +00:00
|
|
|
#include "native.h"
|
|
|
|
|
2024-03-30 16:24:52 +00:00
|
|
|
void native_init(struct native* self,
|
|
|
|
native_fun_t fun,
|
|
|
|
int arity)
|
2024-03-27 10:49:10 +00:00
|
|
|
{
|
|
|
|
assert(self);
|
|
|
|
self->fun = fun;
|
2024-03-30 16:24:52 +00:00
|
|
|
self->arity = arity;
|
2024-03-27 10:49:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void native_free(struct native* self)
|
|
|
|
{
|
|
|
|
assert(self);
|
|
|
|
}
|