useful C macros, typedefs, and debugging/tracing functions.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Avril b567b801d2
Update README
2 months ago
include Added `types.h`: Include the ints, and added 128-bit vectors. 2 months ago
src Added `types.h`: Include the ints, and added 128-bit vectors. 2 months ago
.gitignore initial commit 5 months ago
Makefile Added `types.h`: Include the ints, and added 128-bit vectors. 2 months ago
README Update README 2 months ago

README

Useful macros and trace logging output for C

Headers:
- macros.h - Useful preprocessor defines. A lot use GNU extensions. Include this after all other includes to not poison any other headers.
- ints.h - Uniform naming convention for integer types: i8, u8, i16, u64 ... and for floats: f32, f64, etc.
- types.h - Includes ints.h and also 128-bit vector shim types
- trace.h - setting up and managing the logging level. call `trace_init()` to load form env-var, or `trace_init_with()` to set the level explicitly.