Explorar o código

Fixing macros for scope_exit.hpp

Samuel Jaffe %!s(int64=9) %!d(string=hai) anos
pai
achega
9729eef237
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      util/scope_exit.hpp

+ 4 - 2
util/scope_exit.hpp

@@ -9,8 +9,10 @@
 
 #include <functional>
 
-#include "macro.h"
-
+#undef CONCAT2
+#define CONCAT2(A, B) A##B
+#undef CONCAT
+#define CONCAT(A, B) CONCAT2(A, B)
 #define scope(type) scope_##type##_t CONCAT( scope_,CONCAT( type, __LINE__ ) ) = [&]()
 
 class scope_exit_t {