diff options
Diffstat (limited to 'Include/pymacro.h')
-rw-r--r-- | Include/pymacro.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/pymacro.h b/Include/pymacro.h index 3f6f5dce61..49929e5083 100644 --- a/Include/pymacro.h +++ b/Include/pymacro.h @@ -36,6 +36,10 @@ #define Py_BUILD_ASSERT_EXPR(cond) \ (sizeof(char [1 - 2*!(cond)]) - 1) +#define Py_BUILD_ASSERT(cond) do { \ + (void)Py_BUILD_ASSERT_EXPR(cond); \ + } while(0) + /* Get the number of elements in a visible array This does not work on pointers, or arrays declared as [], or function |