Skip to content

Commit bf53d16

Browse files
committedJan 14, 2014
some minor changes
1 parent 47735c2 commit bf53d16

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed
 

‎tests/test03.c

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
#include <ctry.h>
22
#include <stdio.h>
33

4+
#define TRY01 1
5+
#define TRY02 2
6+
47
int main(void) {
5-
int ret = 2;
8+
int ret = 3;
69
CTRY {
710
CTRY {
811
printf("Throwing error inside double CTRY body...");
912
CTHROW(1);
1013
}
1114
CCATCH(1) {
1215
printf(" 1. Error catched\n");
13-
ret --;
16+
ret &= ~TRY01;
1417
}
1518
CENDTRY;
1619

@@ -19,7 +22,7 @@ int main(void) {
1922
}
2023
CCATCH(1) {
2124
printf("2. Error catched\n");
22-
ret --;
25+
ret &= ~TRY02;
2326
}
2427
CENDTRY;
2528

0 commit comments

Comments
 (0)
Please sign in to comment.