Mercurial > LightClone
view LightClone/Source/Compiler.h @ 67:8e7ebab350e7
Clean up memory leaks
author | koryspansel |
---|---|
date | Fri, 07 Oct 2011 01:15:28 -0700 |
parents | 95677f648a2c |
children |
line wrap: on
line source
/* * Compiler */ #ifndef __COMPILER_H__ #define __COMPILER_H__ #include "Core.h" /* * Program */ class Program; /* * Compiler */ class Compiler { /* * nFunctionTable */ uint32 nFunctionTable[MaximumFunctionCount]; /* * nCallTable */ uint32 nCallTable[MaximumFunctionCount * MaximumInstructionCount]; public: /* * Compiler */ Compiler(); /* * Compile */ ErrorCode Compile(const Program& kProgram, uint8* pData, uint32 nSize); private: /* * GetInstructionSizeFromAction */ uint32 GetInstructionSizeFromAction(uint32 nAction) const; }; #endif //__COMPILER_H__