X-Git-Url: https://git.llucax.com/software/eventxx.git/blobdiff_plain/0d1d4c563b5f48697f98326c264d8fbaefee0cee..6ed7a3484d5adf0d16a1a6ba59f5ab992b71457f:/test/prio-test.cpp?ds=sidebyside diff --git a/test/prio-test.cpp b/test/prio-test.cpp index 613d111..af5af5e 100644 --- a/test/prio-test.cpp +++ b/test/prio-test.cpp @@ -2,10 +2,12 @@ #include #include #include +#include using eventxx::dispatcher; -#define OSASSERT(func, ...) if (func(__VA_ARGS__) == -1) { perror(#func "()"); exit(1); } +#define OSASSERT(func, ...) \ + if (func(__VA_ARGS__) == -1) { perror(#func "()"); std::exit(1); } struct handler {