23 lines
366 B
C
23 lines
366 B
C
#ifndef MK_NATIVE_H
|
|
#define MK_NATIVE_H
|
|
|
|
#include "commons.h"
|
|
#include "vec.h"
|
|
|
|
struct moka;
|
|
|
|
typedef MOKA (*native_fun_t)(struct moka*, struct vec* args);
|
|
|
|
struct native
|
|
{
|
|
native_fun_t fun;
|
|
int arity;
|
|
};
|
|
|
|
void native_init(struct native* self,
|
|
native_fun_t fun,
|
|
int arity);
|
|
void native_free(struct native* self);
|
|
|
|
#endif
|