주요 콘텐츠

Cpp.PreprocIf Class

Namespace: Cpp
Superclasses: AstNodeProperties

Represents the preproc_if nodes in the syntax tree of your code

Since R2026a

Description

The PQL class Cpp.PreprocIf represents the node preproc_if in the syntax tree of your code.

#if FOO
int x = 1;
#else
int x = 2;
#endif

The example contains a preproc_if block that corresponds to Cpp.PreprocIf. The whole #if ... #else ... #endif region is the node matched by this class.

Predicates

expand all

Version History

Introduced in R2026a