Hi everybody,
New adventure question: if you know how macros act in C, is there such a behavior in C?
Basically the most important feature I'm looking for is similar to this:
#define MY_C_MACRO(x) {if (x>0) x++; else return}
Such a macro would cause the function where it is called to return without executing whatever code comes after this macro call. It's sort of like break for a loop.
Now, in Python, I have a lot of similar checks to do, I have an idea of how to implement a check function (for different variables) but I would like to go to the end of the current function where thechecks are called if one of them fails.
If this doesn't make sense, please tell me so I stop looking for a way. I tried even returning 'return' from the check function and trying exec(check_function) in the caller.
Thanks in advance for any advice,
-T