Common utility headers & macros for c.thi.ng projects
C Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.clang-format
LICENSE
README.org
cleanup
features.h
log.h
math.h
random.h
test.c
test.h
vargs.h

README.org

ct-head

Common utility headers & macros for c.thi.ng projects

Build customization flags

The following defines can be used to customize compile & runtime behaviors:

CT_FEATURE_LOGenable logging (if NDEBUG is defined, the CT_DEBUG will be elided)
CT_FEATURE_ANSIuse ANSI colors in log messages
CT_FEATURE_CHECKSenable runtime assertions (via CT_CHECK macro)
CT_FEATURE_CHECK_MEMenable runtime memory checks (via CT_CHECK_MEM macro)
CT_FEATURE_SSEenable SSE version
CT_LOG_PRELUDEinitial part of logging function call (see ./log.h)
CT_CHECK_FAIL_ACTIONwhat to do when checks fail (default: goto fail)
CT_CHECK_MEM_FAIL_ACTIONwhat do when out of memory (default: exit(1))

Contributors

NameRoleWebsite
Karsten Schmidtinitiator & principal developerthi.ng

License

This project is open source and licensed under the Apache Software License 2.0.