Skip to content
/ ct-head Public

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

License

Notifications You must be signed in to change notification settings

thi-ng/ct-head

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published