Write to BMax's Debuglog from C++?
BlitzMax Forums/BlitzMax Programming/Write to BMax's Debuglog from C++?
| ||
Can I write to BlitzMax's debuglog from C++ functions I call in modules? I've noticed that irrKlang - when compiled with GCC - is writing to my BlitzMax debuglog, so I'm assuming there's a pretty standard method of doing this. It would make it much easier to spot any lingering bugs which might be in my TV module if I could debuglog the C++ values as well as the BMax ones. |
| ||
Nevermind, sorted it myself. Had a bit of a brainwave. In case anyone cares, the answer is to add #include <stdio.h> at the top of the c++ code. And then use fprintf(stderr,"MY DEBUG MESSAGE HERE"); to write to the BlitzMax debuglog from the C++ code. |
| ||
Ah, I was wondering where stderr was sent to. Thanks |