xref: /aosp_15_r20/external/bazelbuild-rules_rust/examples/bindgen/simple/simple.h (revision d4726bddaa87cc4778e7472feed243fa4b6c267f)
1*d4726bddSHONG Yifan #ifndef __SIMPLE_H_INCLUDE__
2*d4726bddSHONG Yifan #define __SIMPLE_H_INCLUDE__
3*d4726bddSHONG Yifan 
4*d4726bddSHONG Yifan #ifdef __cplusplus
5*d4726bddSHONG Yifan #define EXTERN_C extern "C"
6*d4726bddSHONG Yifan #else
7*d4726bddSHONG Yifan #define EXTERN_C
8*d4726bddSHONG Yifan #endif
9*d4726bddSHONG Yifan 
10*d4726bddSHONG Yifan #include <stdint.h>
11*d4726bddSHONG Yifan 
12*d4726bddSHONG Yifan static const int64_t SIMPLE_VALUE = 42;
13*d4726bddSHONG Yifan 
14*d4726bddSHONG Yifan EXTERN_C const int64_t simple_function();
15*d4726bddSHONG Yifan 
simple_static_function()16*d4726bddSHONG Yifan static inline int64_t simple_static_function() { return 84; }
17*d4726bddSHONG Yifan 
18*d4726bddSHONG Yifan #endif
19