I accidentally write
And I get an error in the C++ code:
b4r_main.cpp:287:11: error: break statement not within loop or switch
if (true) break;};
I had another, more complex if just afther that line, so, I tried to fix that one . Until I realized that I must have used return.
Shouldn't the B4X compiler catch this error (Detect that there is no current loop to exit) before it creates the C++ code?
B4X:
If State = True Then Exit
And I get an error in the C++ code:
b4r_main.cpp:287:11: error: break statement not within loop or switch
if (true) break;};
I had another, more complex if just afther that line, so, I tried to fix that one . Until I realized that I must have used return.
Shouldn't the B4X compiler catch this error (Detect that there is no current loop to exit) before it creates the C++ code?