Open asarubbo opened 1 year ago
Hello Dave,
packer/jambonz-mini/scripts/install_drachtio.sh uses -DNDEBUG see https://github.com/jambonz/jambonz-infrastructure/blob/b1f3bdc1c1529ef545f6cdbc1c44e39d58b931bc/packer/jambonz-mini/scripts/install_drachtio.sh#L11 while by grepping in the drachtio sources I see:
sip-transports.cpp:#ifdef DEBUG
So to trigger the DEBUG in sip-transports.cpp the macro should be -DDEBUG
-DDEBUG
So since -DNDEBUG has it own scope, see https://en.cppreference.com/w/c/error/assert I'm wondering if it was just misconfused or the correct configuration is -DNDEBUG -DDEBUG
-DNDEBUG
-DNDEBUG -DDEBUG
Hello Dave,
packer/jambonz-mini/scripts/install_drachtio.sh uses -DNDEBUG see https://github.com/jambonz/jambonz-infrastructure/blob/b1f3bdc1c1529ef545f6cdbc1c44e39d58b931bc/packer/jambonz-mini/scripts/install_drachtio.sh#L11 while by grepping in the drachtio sources I see:
So to trigger the DEBUG in sip-transports.cpp the macro should be
-DDEBUG
So since
-DNDEBUG
has it own scope, see https://en.cppreference.com/w/c/error/assert I'm wondering if it was just misconfused or the correct configuration is-DNDEBUG -DDEBUG