Skip to content
This repository was archived by the owner on Oct 13, 2020. It is now read-only.

Commit 9494f4b

Browse files
ppisarajdavis
authored andcommitted
CDRIVER-2460 fix BSON_STATIC_ASSERT definition
The macro definition was mistakenly changed in 1.9.0 (CDRIVER-2271) and partly reverted (CDRIVER-2450). This change completely reverts the macro to its 1.8.0 definition. Signed-off-by: Petr Písař <[email protected]>
1 parent 42ee0a8 commit 9494f4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bson/bson-macros.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@
201201
} while (0)
202202

203203
/* obsolete macros, preserved for compatibility */
204-
#define BSON_STATIC_ASSERT(s) BSON_STATIC_ASSERT_ (s, __LINE__, assert)
204+
#define BSON_STATIC_ASSERT(s) BSON_STATIC_ASSERT_ (s, __LINE__)
205205
#define BSON_STATIC_ASSERT_JOIN(a, b) BSON_STATIC_ASSERT_JOIN2 (a, b)
206206
#define BSON_STATIC_ASSERT_JOIN2(a, b) a##b
207207
#define BSON_STATIC_ASSERT_(s, l) \

0 commit comments

Comments
 (0)