As I am standing on the shoulders of giants, I cannot complain.
I am using a library where the original coder has put printf ALL OVER, (and I mean ALL OVER) it, so that they could debug it and get it running.
It's slowing it down and my initial thought was to go through it all taking out all the printfs. (but I might later need them)
I usually add a int value "int debug=1" and then wrap all my printfs in "ifs" so I can turn them off. "if (debug) {"
before I attack all the printfs (a lot of work), is there a way to shut up printf ? could I do a weird override of printf that does nowt ? that I can include at compile time if I want to shut it up ?
any thoughts gratefully received. (including any better way on how I should add debug printfs that can be turned on and off)
As I am standing on the shoulders of giants, I cannot complain.
I am using a library where the original coder has put printf ALL OVER, (and I mean ALL OVER) it, so that they could debug it and get it running.
It's slowing it down and my initial thought was to go through it all taking out all the printfs. (but I might later need them)
I usually add a int value "int debug=1" and then wrap all my printfs in "ifs" so I can turn them off. "if (debug) {"
before I attack all the printfs (a lot of work), is there a way to shut up printf ? could I do a weird override of printf that does nowt ? that I can include at compile time if I want to shut it up ?
any thoughts gratefully received. (including any better way on how I should add debug printfs that can be turned on and off)