C99 Types
- Updated2023-09-07
- 1 minute(s) read
C99 Types
The VirtualBench C API header, nivirtualbench.h, includes stdint.h and stdbool.h if your compiler supports these libraries. Otherwise, it defines them for you. This includes fixed-width integer types, which includes the following:
- int8_t
- int16_t
- int32_t
- uint8_t
- uint16_t
- uint32_t
You may opt out of including these libraries by setting NIVB_DONT_DEFINE_STDINT or NIVB_DONT_DEFINE_STDBOOL respectively.
Enumerations
Enumerations are named with the convention of niVB_<EnumName>. Each value of an enumeration is named with the convention of niVB_<EnumName>_<ValueName>. It is expected that enumerations are represented as 32-bit integers, int32_t.