Support for break to break the execution of M_LET

This commit is contained in:
Patrick Pelissier committed 2018-08-25 00:11:20 +02:00
1 parent e33e77595f
commit 71db5f9a79
2 files changed
+4 -1

No files matched your search

+2 -1
View File
@@ -2123,7 +2123,8 @@ m_core_hash (const void *str, size_t length)
#define M_LETI_SINGLE2(cont, oplist, name) \ #define M_LETI_SINGLE2(cont, oplist, name) \
for(M_GET_TYPE oplist name; \ for(M_GET_TYPE oplist name; \
cont && (M_GET_INIT oplist (name), true); \ cont && (M_GET_INIT oplist (name), true); \
(M_GET_CLEAR oplist (name), cont = false)) (M_GET_CLEAR oplist (name), cont = false)) \
for(;cont;cont = false)
/* Transform the va list by adding their number as the first argument of /* Transform the va list by adding their number as the first argument of
the list. the list.
+2
View File
@@ -173,6 +173,8 @@ static void test_let(void)
{ {
M_LET(z, M_CLASSIC_OPLIST(testobj)) { M_LET(z, M_CLASSIC_OPLIST(testobj)) {
testobj_add(z,z,z); testobj_add(z,z,z);
break;
assert(0);
} }
} }