78 |
struct _tagILCoder |
struct _tagILCoder |
79 |
{ |
{ |
80 |
const ILCoderClass *classInfo; |
const ILCoderClass *classInfo; |
|
|
|
81 |
}; |
}; |
82 |
|
|
83 |
/* |
/* |
168 |
/* |
/* |
169 |
* Create a coder instance. Returns NULL if not possible. |
* Create a coder instance. Returns NULL if not possible. |
170 |
*/ |
*/ |
171 |
ILCoder *(*create)(ILUInt32 size,unsigned long cachePageSize); |
ILCoder *(*create)(ILExecProcess *process, ILUInt32 size, |
172 |
|
unsigned long cachePageSize); |
173 |
|
|
174 |
/* |
/* |
175 |
* Enable debug mode. The coder will output extra information |
* Enable debug mode. The coder will output extra information |
818 |
/* |
/* |
819 |
* Helper macros for calling coder methods. |
* Helper macros for calling coder methods. |
820 |
*/ |
*/ |
821 |
#define ILCoderCreate(classInfo,size,cachePageSize) \ |
#define ILCoderCreate(classInfo,process,size,cachePageSize) \ |
822 |
((*((classInfo)->create))((size),(cachePageSize))) |
((*((classInfo)->create))((process), (size), (cachePageSize))) |
823 |
#define ILCoderEnableDebug(coder) \ |
#define ILCoderEnableDebug(coder) \ |
824 |
((*((coder)->classInfo->enableDebug))((coder))) |
((*((coder)->classInfo->enableDebug))((coder))) |
825 |
#define ILCoderAlloc(coder,size) \ |
#define ILCoderAlloc(coder,size) \ |