zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Macro.h
Go to the documentation of this file.
1 //
2 // Copyright (c) 2012 The ANGLE Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5 //
6 
7 #ifndef COMPILER_PREPROCESSOR_MACRO_H_
8 #define COMPILER_PREPROCESSOR_MACRO_H_
9 
10 #include <map>
11 #include <string>
12 #include <vector>
13 
14 namespace pp
15 {
16 
17 struct Token;
18 
19 struct Macro
20 {
21  enum Type
22  {
25  };
26  typedef std::vector<std::string> Parameters;
27  typedef std::vector<Token> Replacements;
28 
30  bool equals(const Macro& other) const;
31 
32  bool predefined;
33  mutable bool disabled;
34 
39 };
40 
41 typedef std::map<std::string, Macro> MacroSet;
42 
43 } // namespace pp
44 #endif // COMPILER_PREPROCESSOR_MACRO_H_
Type type
Definition: Macro.h:35
GLint GLenum GLsizei GLsizei GLsizei GLint GLenum GLenum type
Definition: gl2ext.h:845
std::vector< std::string > Parameters
Definition: Macro.h:26
std::string name
Definition: Macro.h:36
png_sPLT_entryp pp
Definition: pngrutil.c:1375
bool disabled
Definition: Macro.h:33
Macro()
Definition: Macro.h:29
Replacements replacements
Definition: Macro.h:38
Parameters parameters
Definition: Macro.h:37
std::map< std::string, Macro > MacroSet
Definition: Macro.h:41
std::vector< Token > Replacements
Definition: Macro.h:27
GLsizei const GLcharARB ** string
Definition: glew.h:5638
bool equals(const Macro &other) const
Definition: Macro.cpp:14
bool predefined
Definition: Macro.h:32
#define false
Definition: ftrandom.c:50