cxx-frontend
    Preparing search index...

    Class Preprocessor

    Index

    Constructors

    Accessors

    • get canResolveFiles(): boolean

      Returns true if the preprocessor can resolve files.

      Returns boolean

    • set canResolveFiles(value: boolean): void

      Sets whether the preprocessor can resolve files.

      Parameters

      • value: boolean

      Returns void

    • get currentPath(): string

      Returns the current path.

      Returns string

    • set currentPath(path: string): void

      Sets the current path.

      Parameters

      • path: string

        the current path

      Returns void

    Methods

    • Defines a macro.

      Parameters

      • name: string

        the name of the macro

      • value: string

        the value of the macro

      Returns void

    • Preprocess the given source code.

      Parameters

      • source: string

        the source code to preprocess

      • fileName: string

        the file name of the source code

      Returns string

      the preprocessed source code

    • Undefines a macro.

      Parameters

      • name: string

        the name of the macro

      Returns void