src/bh_util.h
@@ -18,6 +18,7 @@ #ifndef BH_UTIL_SOXWOK67 #define BH_UTIL_SOXWOK67 #include "macro.h" #include <functional> #include <mutex> #include <stdint.h> @@ -167,13 +168,5 @@ return ptr() ? false : Bind(); } }; // macro helper #define JOIN_IMPL(a, b) a##b #define JOIN(a, b) JOIN_IMPL(a, b) // defer function / lambda. #define DEFERF(func) ExitCall JOIN(defer_, __LINE__)(func) // defer simple expression #define DEFER1(expr) DEFERF([&]() { expr; }) #endif /* end of include guard: BH_UTIL_SOXWOK67 */