I am using DebugHook and the compiler warns me that it is
specific to a platform.
When I look at its definition in the System unit, I see
DebugHook: Byte platform = 0;
I want the code to work for most platforms.
I am guessing that DebugHook is only valid for MSWINDOWS.
But, what are the values of the platform “attribute” ?
2nd part of it is that I would like to turn off the warning for that particular line of code. I see in previous posts that someone said the granularity is a method? Is this correct
I had tried it but must have miscopied from somewhere and was using UNIT_PLATFORM OFF, which didn’t work. This works fine, thanks. My goal is to have 0 warnings, then the real ones that matter will catch my eye.