Re: mooooooooooore debug messages
Posted by
dxli on
Jul 16, 2013; 7:36pm
URL: https://forum.librecad.org/mooooooooooore-debug-messages-tp5708530p5708579.html
it's exactly the idea of RS_Debug() class, use the debugging level control, make sure the level from argv[] is set properly, and RS_Debug() will ignore messages with lower levels.
void RS_Debug::instance()->print(RS_Debug::D_DEBUGGING, const char* format ...) ;
On Tue, Jul 16, 2013 at 3:08 PM, cantcode [via LibreCAD]
<[hidden email]> wrote:
"I don't quite get what you want to achieve here."
I just wanted libdxfrw to print the debug messages if needed by the user of librecad.
"... parsing C style macros is carried out at cpp building time...."
Right, did not think of that. So my suggestion would not work for users which do not build librecad but just use it.
I wanted a way for the user to also enable the debug messages of libdxfrw by passing --debug to librecad or something in those lines.
--
Dongxu Li, Ph.D.
www.librecad.org