thi-ng / ct-head

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

License:Apache License 2.0


Languages

Language:C 99.2%Language:Shell 0.8%