From a31dfac365feef7838b01b1efd3fe058c89484d7 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 5 Dec 2015 18:58:59 +0200 Subject: Prevent assert() expansion during ODB compilation --- brep/package | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'brep') diff --git a/brep/package b/brep/package index b3d4890..056e2a8 100644 --- a/brep/package +++ b/brep/package @@ -33,6 +33,16 @@ namespace brep #include +// Prevent assert() macro expansion in get/set expressions. This should +// appear after all #include directives since the assert() macro is +// redefined in each inclusion. +// +#ifdef ODB_COMPILER +# undef assert +# define assert assert +void assert (int); +#endif + // We have to keep these mappings at the global scope instead of inside // the brep namespace because they need to be also effective in the // bpkg namespace from which we "borrow" types (and some of them use -- cgit v1.1