staropram / cantcoap

CoAP implementation that focuses on simplicity by offering a minimal set of functions and straightforward interface.
BSD 2-Clause "Simplified" License
86 stars 38 forks source link

Sort out debug def #15

Closed sdrsdr closed 5 years ago

sdrsdr commented 8 years ago

The debug define belongs in Makefie, and it is present there. Let's make it more visible :)

staropram commented 5 years ago

Hi, thanks for the pull request.

The reason for the debug definition being in the files is so that per-file debug enablement/disablement is made easier. This might not make any sense on a normal computer, but on an embedded device turning on debug for everything pulls in an enormous number of strings which consumes a lot of on-board memory.

Probably not likely to be an issue these days but it certainly used to be.

I suppose people can just manually block out a file if they need to. Thanks.