I have something like this in my code that checks for user's license:
// C# code:
#if DEBUG
MakeLicenseValidForever();
#else
CheckLicense();
#endif
Now, I need to know if these directives get saved in my released binary or not. If they do get saved, then a user can make #if DEBUG
return true
and bypass the checks. I need to know if #if DEBUG
is safe.
PS1: Obviously I use release
mode for distribution.
PS2: I asked my question here first, but since it's not getting any attention, I ask it here again!