func_table.h
来自「< Game Script Mastery>> source 」· C头文件 代码 · 共 47 行
H
47 行
/*
Project.
XSC - The XtremeScript Compiler Version 0.8
Abstract.
Function table header
Date Created.
9.2.2002
Author.
Alex Varanese
*/
#ifndef XSC_FUNC_TABLE
#define XSC_FUNC_TABLE
// ---- Include Files -------------------------------------------------------------------------
#include "xsc.h"
// ---- Data Structures -----------------------------------------------------------------------
typedef struct _FuncNode // A function table node
{
int iIndex; // Index
char pstrName [ MAX_IDENT_SIZE ]; // Name
int iIsHostAPI; // Is this a host API function?
int iParamCount; // The number of accepted parameters
LinkedList ICodeStream; // Local I-code stream
}
FuncNode;
// ---- Function Prototypes -------------------------------------------------------------------
FuncNode * GetFuncByIndex ( int iIndex );
FuncNode * GetFuncByName ( char * pstrName );
int AddFunc ( char * pstrName, int iIsHostAPI );
void SetFuncParamCount ( int iIndex, int iParamCount );
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?