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