diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-09-23 10:39:20 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-09-23 10:39:20 (GMT) |
| commit | 1905e497442bc39cf8896e54812718064a52d621 (patch) | |
| tree | ca472ca41bbe8ebfb15e71deb62670141fb4369a /src/pim/Generator.h | |
| parent | 644c1307124dffd13268445d0aebaed13a090c78 (diff) | |
| download | powder-1905e497442bc39cf8896e54812718064a52d621.zip powder-1905e497442bc39cf8896e54812718064a52d621.tar.gz | |
Macros and property setting
Diffstat (limited to 'src/pim/Generator.h')
| -rw-r--r-- | src/pim/Generator.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/pim/Generator.h b/src/pim/Generator.h index 0287339..2eb1029 100644 --- a/src/pim/Generator.h +++ b/src/pim/Generator.h @@ -100,6 +100,12 @@ namespace pim typedef std::pair<int, int*> ValuePlaceholder; std::vector<ValuePlaceholder> valuePlaceholders; + typedef std::pair<int, std::string> PropertyPlaceholder; + std::vector<PropertyPlaceholder> propertyPlaceholders; + + typedef std::pair<int, std::string> MacroPlaceholder; + std::vector<MacroPlaceholder> macroPlaceholders; + std::vector<Label> labelPositions; std::vector<unsigned char> program; @@ -110,6 +116,8 @@ namespace pim void writeConstant(int constant); void writeConstantPlaceholder(std::string label); void writeConstantPlaceholder(int * value); + void writeConstantMacroPlaceholder(std::string macro); + void writeConstantPropertyPlaceholder(std::string property); public: Generator(); @@ -134,6 +142,7 @@ namespace pim void Duplicate(); void Discard(); + void RTConstant(std::string name); void Constant(std::string constant); void Increment(std::string constant); void Add(); |
