Page 1 of 1

own chDbgCheck

Posted: Fri Apr 06, 2018 8:20 am
by omcdr
What is best way to define own chDbgCheck macro ?
In chdebug.h there is #if !defined(chDbgCheck), but this file doesn't include other files to overide it.
It could be a good idea to include global user.h if exists to override macros like this ?

Re: own chDbgCheck

Posted: Fri Apr 06, 2018 8:24 am
by Giovanni
Hi,

Adding it to chconf.h should work, you can also include another file from chconf.h.

Giovanni