주요 콘텐츠

Cpp.PreprocIfdef Class

Namespace: Cpp
Superclasses: AstNodeProperties

Represents the preproc_ifdef nodes in the syntax tree of your code

Since R2026a

Description

The PQL class Cpp.PreprocIfdef represents the node preproc_ifdef in the syntax tree of your code.

#define FOO
#ifdef FOO
int x = 1;
#else
int x = 2;
#endif

The #ifdef ... #else ... #endif block in the example corresponds to the preproc_ifdef node and is represented by Cpp.PreprocIfdef.

Predicates

expand all

Version History

Introduced in R2026a