[odb-users] ODB compiler ignore instruction

Boris Kolpackov boris at codesynthesis.com
Fri Feb 21 00:58:08 EST 2014


Hi Erez,

Erez GB <erezgb at walla.com> writes:

> I am looking for a way to instruct the ODB compiler to ignore a section
> of the source code, how can I achive that?

You can use the ODB_COMPILER macro which is defined when the code is
compiled with the ODB compiler:

#ifndef ODB_COMPILER

// Code that the ODB compiler should not see.

#endif

You can search in the manual for 'ODB_COMPILER' to see some examples
of this macro's usage.

Boris



More information about the odb-users mailing list