bench/lang: add bench_base
[nit.git] / c_src / tables._nitni.h
index f7a3d4e..3da30c6 100644 (file)
@@ -5,12 +5,14 @@
 
 #ifndef TABLESCAPABLE_TYPE
 #define TABLESCAPABLE_TYPE
-typedef struct s_TablesCapable{
-       val_t v;
-} TablesCapable;
+struct s_TablesCapable{
+               struct nitni_ref ref; /* real ref struct, must be first */
+};
+typedef struct s_TablesCapable *TablesCapable;
+#define TablesCapable_incr_ref( x ) nitni_global_ref_incr( (struct nitni_ref*)(x) )
+#define TablesCapable_decr_ref( x ) nitni_global_ref_decr( (struct nitni_ref*)(x) )
 #endif
-
-#include "./tables_nit.h"
+#include "tables_nit.h"
 
 /* out/indirect function for tables::TablesCapable::lexer_goto */
 val_t TablesCapable_lexer_goto___out( val_t recv, val_t i, val_t j );