This page describes the preparations that you need to perform before starting to use libcwd in your applications source code.
Binary distributions should be installed the usual way.
You need to add two custom header files to your application.
The recommended names are "debug.h" and "sys.h".
You can use the following templates for a quick start:
This debug.h file is for applications; for more detailed information and for information for library developers who want to use libcwd, please also read The Custom debug.h File.
If you added one or more custom debug channels to your namespace
DEBUGCHANNELS in your custom "debug.h", then of course you also need to add the definition somewhere. You can do that anywhere, or you could add a special source file for it.
The above is just an example of course. But if you'd use it, then you would initialize libcwd by including the following at the top of main:
And every thread would call
myproject::debug::init_thread(); when started.