Bug? Conditional Compilation with OR and parentheses

Jack Cole

Well-Known Member
Licensed User
Longtime User
Sorry if I am not using conditional compilation as intended.

Here is some code:
B4X:
#if (b4i and not(debug)) or b4a
    Starter.CL.TestCrash
#end if

The code itself actually works as intended. But the IDE identifies a problem. The app actually runs without error despite these error messages.

1586883710610.png


Anyway, I don't need any help in solving this as I can re-write the code to make it stop giving errors. I am just passing it along in case it is something you want to fix.

Thanks,
Jack
 

Jack Cole

Well-Known Member
Licensed User
Longtime User
Never mind. I think I understand why it happens in b4i. It relates to the debug conditional. The log error shows up so you can know there will be a problem if you try to compile a release app.
 
Top