mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-10 06:00:51 +00:00
16 lines
332 B
OpenEdge ABL
16 lines
332 B
OpenEdge ABL
|
|
#ifdef BIND
|
||
|
|
#undef BIND
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#define BIND(T) \
|
||
|
|
if (l->declaration().is(IfcSchema::T::Class())) { \
|
||
|
|
try { \
|
||
|
|
return map((IfcSchema::T*)l); \
|
||
|
|
} catch (const std::exception& e) { \
|
||
|
|
Logger::Message(Logger::LOG_ERROR, std::string(e.what()) + "\nFailed to convert:", l); \
|
||
|
|
} \
|
||
|
|
return false; \
|
||
|
|
}
|
||
|
|
|
||
|
|
#include "mapping.i"
|