Common: Fix SCOPE_EXIT to actually create unique identifiers.
This commit is contained in:
parent
afc416c607
commit
fc11aff955
2 changed files with 7 additions and 1 deletions
|
@ -31,6 +31,10 @@ template<> struct CompileTimeAssert<true> {};
|
|||
|
||||
#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
|
||||
|
||||
/// Textually concatenates two tokens. The double-expansion is required by the C preprocessor.
|
||||
#define CONCAT2(x, y) DO_CONCAT2(x, y)
|
||||
#define DO_CONCAT2(x, y) x ## y
|
||||
|
||||
#ifndef _MSC_VER
|
||||
|
||||
#include <errno.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue