X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Floader%2FInterpreter.h;fp=src%2Floader%2FInterpreter.h;h=15cebd5e2ff3f10e2adb57a48418c4efb1d1edf5;hb=754442d4502b743a46831055484c3fa9fa621ec2;hp=9e90bcc4e98fd51d9f7b05594308b689a6df3d01;hpb=0ad5ca97b5df217329bc319d62564a9f46ba11d7;p=l2e.git diff --git a/src/loader/Interpreter.h b/src/loader/Interpreter.h index 9e90bcc..15cebd5 100644 --- a/src/loader/Interpreter.h +++ b/src/loader/Interpreter.h @@ -9,6 +9,7 @@ #define LOADER_INTERPRETER_H_ #include "fwd.h" +#include "PagedAllocator.h" #include "ParsedSource.h" #include "TypeDescription.h" #include "../battle/fwd.h" @@ -36,7 +37,7 @@ public: }; public: - explicit Interpreter(const ParsedSource &source) : source(source) { } + explicit Interpreter(const ParsedSource &source) : source(source), alloc(4096) { } ~Interpreter(); private: Interpreter(const Interpreter &); @@ -88,6 +89,8 @@ private: private: const ParsedSource &source; + PagedAllocator alloc; + std::map parsedDefinitions; std::vector postponedDefinitions; std::map imageCache;