Skip to content
Permalink
Browse files

py/misc.h: Rename _MP_STRINGIFY to not use leading underscore in ident.

Macro identifiers with a leading underscore are reserved.
  • Loading branch information...
dpgeorge committed May 9, 2019
1 parent 4268d0e commit c0a1de3c216e86e679520fa50daf41dd9ac3ea78
Showing with 2 additions and 2 deletions.
  1. +2 −2 py/misc.h
@@ -47,8 +47,8 @@ typedef unsigned int uint;
#endif

// Classical double-indirection stringification of preprocessor macro's value
#define _MP_STRINGIFY(x) #x
#define MP_STRINGIFY(x) _MP_STRINGIFY(x)
#define MP_STRINGIFY_HELPER(x) #x
#define MP_STRINGIFY(x) MP_STRINGIFY_HELPER(x)

// Static assertion macro
#define MP_STATIC_ASSERT(cond) ((void)sizeof(char[1 - 2 * !(cond)]))

0 comments on commit c0a1de3

Please sign in to comment.
You can’t perform that action at this time.