ni_nitdoc: display VT in class sidebar
[nit.git] / c_src / time._nitni.h
1 #include <nit_common.h>
2 #include "standard___time._sep.h"
3 #ifndef TIME_NITNI_H
4 #define TIME_NITNI_H
5
6 #ifndef OBJECT_TYPE
7 #define OBJECT_TYPE
8 struct s_Object{
9 struct nitni_ref ref; /* real ref struct, must be first */
10 };
11 typedef struct s_Object *Object;
12 #define Object_incr_ref( x ) nitni_global_ref_incr( (struct nitni_ref*)(x) )
13 #define Object_decr_ref( x ) nitni_global_ref_decr( (struct nitni_ref*)(x) )
14 #endif
15 #ifndef SYS_TYPE
16 #define SYS_TYPE
17 struct s_Sys{
18 struct nitni_ref ref; /* real ref struct, must be first */
19 };
20 typedef struct s_Sys *Sys;
21 #define Sys_incr_ref( x ) nitni_global_ref_incr( (struct nitni_ref*)(x) )
22 #define Sys_decr_ref( x ) nitni_global_ref_decr( (struct nitni_ref*)(x) )
23 #endif
24 #include "time_nit.h"
25
26 /* out/indirect function for time::Object::get_time */
27 val_t Object_get_time___out( val_t recv );
28
29 /* out/indirect function for time::Sys::nanosleep */
30 void Sys_nanosleep___out( val_t recv, val_t sec, val_t nanosec );
31 #endif