Skip to content

Commit eac7297

Browse files
feat(wheel_utils): add meta_macro header with conditional loop utility
1 parent 208e806 commit eac7297

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#if !defined (META_MACRO_HXX)
2+
3+
#define WHEEL_EAT_ALL_IF(condition, func) \
4+
do { \
5+
while(true) { \
6+
func(); \
7+
if (condition) break; \
8+
} \
9+
} while(0)
10+
11+
#endif // META_MACRO_HXX

0 commit comments

Comments
 (0)