IDL 4.2 · §7.3
Preprocessor
A full C-style preprocessor runs ahead of parsing: #include (with search paths), #define / function-like macros, conditional compilation (#if / #ifdef / #else) and #pragma. Include cycles and macro recursion are detected.
Example
#include "common.idl"
#define MAX 1024
#ifndef EMBEDDED
struct Big { octet data[MAX]; };
#endif
ZeroDDS support
| OMG IDL 4.2 section | §7.3 |
| Implementation | idl-parse/src/preprocess |
| Tests | preprocess.rs |
| Status | ✓ — parsed and validated. |
See also: IDL construct coverage · idl-4.2 audit · OMG IDL 4.2 spec