Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdlib.h>
- /**
- * WARNING: Use these with caution as they are dangerous and easy to break!
- * NEVER:
- * place a dpl_cr_return* inside another switch statement
- * place two or more dpl_cr_return* statements on the same line
- */
- #define dpl_cr_begin static int __cr_line = 0; switch(__cr_line) { case 0:
- #define dpl_cr_finish(n) } return (n)
- #define dpl_cr_finish_void } return
- #define dpl_cr_return(z) \
- do { \
- __cr_line = __LINE__; \
- return (z); \
- case __LINE__:; \
- } while (0)
- #define dpl_cr_return_void \
- do { \
- __cr_line = __LINE__; \
- return; \
- case __LINE__:; \
- } while (0)
Add Comment
Please, Sign In to add comment