theos icon indicating copy to clipboard operation
theos copied to clipboard

.xmi and .xi files do not work with HBLogDebug.

Open DHowett opened this issue 10 years ago • 2 comments

(It's a preprocessor macro, and .xmi files go through logos AFTER the preprocessor has had its way with them.)

DHowett avatar Nov 02 '15 05:11 DHowett

One up for this, my tweak uses multiple .xm files. Need an xmi to bind them together. Tried to fix it on my own but too little knowledge. Decided to just replaced all the HB to NSLog instead. But would be nice to have colored logs when reading.

vtky avatar Feb 06 '16 20:02 vtky

I would consider that a case where you should be working out how to compile those separately rather than as one big file. I originally wrote TypeStatus that way but have since found it better to separate files. To share variables between separate files, consider using singleton classes, or use a global header that declares the appropriate variables/functions as extern.

The only real solution without resorting to duplicating the log macros within Logos is to run the preprocessor a second time, after Logos. That feels really hacky and would slow down building so I haven’t yet implemented any kind of fix for this.

kirb avatar Feb 07 '16 01:02 kirb