From 840818d681ea3159948d7aff6e1a0ec17e69e785 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Thu, 15 Jun 2023 21:27:42 +0200 Subject: [PATCH] #3308 add assert --- src/ifcgeom_schema_agnostic/Kernel.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ifcgeom_schema_agnostic/Kernel.h b/src/ifcgeom_schema_agnostic/Kernel.h index 06d4dd079b..abeb159a1a 100644 --- a/src/ifcgeom_schema_agnostic/Kernel.h +++ b/src/ifcgeom_schema_agnostic/Kernel.h @@ -11,6 +11,9 @@ #include #include +#ifndef SCHEMA_SEQ +static_assert(false, "A boost preprocessor sequence of schema identifiers is needed for this file to compile."); +#endif // @tfk A macro cannot define an include (I think), so here we can't // loop over the sequence of schema identifiers, but rather we have @@ -168,4 +171,4 @@ namespace IfcGeom { }; } -#endif \ No newline at end of file +#endif