tillitis / tkey-libs

TKey device libs
GNU General Public License v2.0
4 stars 2 forks source link

Use QEMU_DEBUG in tkey-libs #40

Closed mchack-work closed 7 months ago

mchack-work commented 7 months ago

-D QEMUDEBUG was mistakenly removed. It is needed to build the actual qemu() functions in libcommon. tkey-libs's own use of the qemu_() functions are isolated to assert() and shouldn't increase code size.

When a device app don't want to use the qemu_*() functions simply not defining QEMU_DEBUG means the function declarations in qemu_debug.h are replaced by nothing by the pre-processor.