Commands are recognized in Printf strings
The keyword "If" in a printf string is recognized as a command. For example run the following code lines in gmsh as *.geo file:
///////////////////////////////////////////////////////////
If ( 1 ) //\<-- change this value to 0 and enjoy
Printf("if the condition above is not fulfilled...");
Printf("this -\> If \<- will create an error message: Unexpected end of file");
Printf("By the way: --\> if \<-- is innocent");
Printf("But you can easily fix this by uncomment the following line:");
//Printf("EndIf");
Else
Printf("This is the best bug I have ever seen :-)");
EndIf
//////////////////////////////////////////////////////////////////
The If Else condition is messed up only, if the first condition above is NOT fulfilled (tricky)
Edited by Christophe Geuzaine