Skip to content

Commit d60a8d9

Browse files
committedJul 23, 2019
refactor: make macro more local
1 parent 07ff034 commit d60a8d9

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed
 

‎src/container.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,13 @@ static inline void test_vector()
101101

102102
free(vec);
103103
}
104+
#endif
104105

105106
void runtest()
106107
{
108+
#ifndef SELFHOST_9MM
107109
test_vector();
108110
test_map();
109-
}
110111
#endif
112+
return;
113+
}

‎src/main.c

-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ int main(int argc, char const* const* argv)
1818
}
1919

2020
if (strncmp("--test", argv[1], 5) == 0) {
21-
#ifndef SELFHOST_9MM
2221
runtest();
23-
#endif
2422
return 0;
2523
}
2624

0 commit comments

Comments
 (0)
Please sign in to comment.