VisuTwin Canvas
C++ 3D Engine — Metal Backend
Loading...
Searching...
No Matches
visutwin::canvas::Preprocessor Class Reference

#include <core/preprocessor.h>

Static Public Member Functions

static std::string removeEmptyLines (const std::string &source)
static std::string run (const std::string &source, const std::unordered_map< std::string, std::string > &includes, const bool stripDefines)
static std::string run (const std::string &source, const std::unordered_map< std::string, std::string > &includes={}, const PreprocessorOptions &options={})
static std::string stripComments (const std::string &source)

Detailed Description

Definition at line 25 of file preprocessor.h.

Member Function Documentation

◆ removeEmptyLines()

std::string visutwin::canvas::Preprocessor::removeEmptyLines ( const std::string & source)
inlinestatic

Definition at line 33 of file preprocessor.h.

◆ run() [1/2]

std::string visutwin::canvas::Preprocessor::run ( const std::string & source,
const std::unordered_map< std::string, std::string > & includes,
const bool stripDefines )
inlinestatic

Definition at line 40 of file preprocessor.h.

References run(), and visutwin::canvas::PreprocessorOptions::stripDefines.

Referenced by run().

◆ run() [2/2]

std::string visutwin::canvas::Preprocessor::run ( const std::string & source,
const std::unordered_map< std::string, std::string > & includes = {},
const PreprocessorOptions & options = {} )
inlinestatic

Definition at line 49 of file preprocessor.h.

◆ stripComments()

std::string visutwin::canvas::Preprocessor::stripComments ( const std::string & source)
inlinestatic

Definition at line 28 of file preprocessor.h.


The documentation for this class was generated from the following file: