X-Git-Url: http://nitlanguage.org diff --git a/c_src/kernel._nitni.h b/c_src/kernel._nitni.h index e2f7acb..c1691d9 100644 --- a/c_src/kernel._nitni.h +++ b/c_src/kernel._nitni.h @@ -4,5 +4,29 @@ #ifndef KERNEL_NITG_NITNI_H #define KERNEL_NITG_NITNI_H +#ifndef NIT_TYPE_Sys +#define NIT_TYPE_Sys 1 +typedef struct nitni_instance *Sys; +#endif +#ifndef NIT_TYPE_Sys +#define NIT_TYPE_Sys 1 +typedef struct nitni_instance *Sys; +#endif +#ifndef NIT_TYPE_Sys +#define NIT_TYPE_Sys 1 +typedef struct nitni_instance *Sys; +#endif +#ifndef NIT_TYPE_Sys +#define NIT_TYPE_Sys 1 +typedef struct nitni_instance *Sys; +#endif #include "kernel._ffi.h" +extern void nitni_global_ref_incr(void*); +extern void nitni_global_ref_decr(void*); +#ifndef Sys_incr_ref + #define Sys_incr_ref(from) nitni_global_ref_incr((Sys)(from)) +#endif +#ifndef Sys_decr_ref + #define Sys_decr_ref(from) nitni_global_ref_decr((Sys)(from)) +#endif #endif