fblock.h.svn-base
来自「这是一段游戏修改工具的源代码.ring3功能由dephi开发,驱动是C开发.希望」· SVN-BASE 代码 · 共 38 行
SVN-BASE
38 行
// Fblock.h
#ifndef __FBLOCK_H
#define __FBLOCK_H
#include "export.h"
// FBlock contains all that the runtime system needs to know about a function
struct EXPORT FBlock {
PInstruction pstart; // actual pcode
int nlocal; // reserved for local variables (dwords)
int nargs; // no. of args explicitly passed (dwords)
int ntotal; // the sum of nlocal and nargs
Table* context; // symbol table context
Class* class_ptr; // class pointer - NULL if not method
Entry* entry; // specific entry in table
Function* function; // actual corresponding function object
void* data; // extra data (will be addr of wrapped native code)
XTrace* trace; // optional trace object
// more to follow....
FBlock (PInstruction pc=NULL, int na=0)
{ pstart = pc; nargs = na; nlocal = 0; context = NULL; data = NULL; }
void *native_addr() { return data; }
static FBlock *create(Entry *pe, Class *pc);
void finalize(int sz);
};
typedef FBlock *PFBlock;
typedef FBlock **PPFBlock;
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?