Don't understand "#define for if-statement"

I looked at the code used to port lua to a C ++ application.

I was very surprised to see this:

#define for if (false) {} else for 

I do not understand the meaning of this. It is useless for me to do something like this.

Do I need to do something with some compiler tricks or something else?

PS: The library I was looking at is luabind .

+5
source share
1 answer

I saw something similar to this to reduce the compiler error, where the scope of the variable-variable has leaked beyond the scope of the for-statement.

Related: / Zc: forScope (matching stiffness in Loop Scope area) .

+6
source

Source: https://habr.com/ru/post/1204185/


All Articles