2
0

Fix overriding of ftl behaviour for tests.

This commit is contained in:
Maarten Billemont
2018-03-24 15:22:37 -04:00
parent a1f5e0ba1c
commit 6650382e19
2 changed files with 22 additions and 11 deletions

View File

@@ -19,7 +19,13 @@
#include <stdio.h>
#include <stdlib.h>
#define ftl(...) do { fprintf( stderr, __VA_ARGS__ ); exit(2); } while (0)
#ifndef mpw_log_do
#define mpw_log_do(level, format, ...) ({ \
fprintf( stderr, format "\n", ##__VA_ARGS__ ); \
if (level == ftl_level) \
abort(); \
})
#endif
#include "mpw-algorithm.h"
#include "mpw-util.h"