api 索引

作者: davidxiyu | 来源:发表于2018-03-15 13:46 被阅读0次

1.skynet_config  skynet_imp.h

struct skynet_config {

int thread;

int harbor;

int profile;

const char * daemon;

const char * module_path;

const char * bootstrap;

const char * logger;

const char * logservice;

};

2.lua_State  lstate.h

struct lua_State {

  CommonHeader;

  unsigned short nci;  /* number of items in 'ci' list */

  lu_byte status;

  StkId top;  /* first free slot in the stack */

  global_State *l_G;

  CallInfo *ci;  /* call info for current function */

  const Instruction *oldpc;  /* last pc traced */

  StkId stack_last;  /* last free slot in the stack */

  StkId stack;  /* stack base */

  UpVal *openupval;  /* list of open upvalues in this stack */

  GCObject *gclist;

  struct lua_State *twups;  /* list of threads with open upvalues */

  struct lua_longjmp *errorJmp;  /* current error recover point */

  CallInfo base_ci;  /* CallInfo for first level (C calling Lua) */

  volatile lua_Hook hook;

  ptrdiff_t errfunc;  /* current error handling function (stack index) */

  int stacksize;

  int basehookcount;

  int hookcount;

  unsigned short nny;  /* number of non-yieldable calls in stack */

  unsigned short nCcalls;  /* number of nested C calls */

  l_signalT hookmask;

  lu_byte allowhook;

};

3.LUA_API = extern

4.LUAI_FUNC = extern hidden

相关文章

网友评论

    本文标题:api 索引

    本文链接:https://www.haomeiwen.com/subject/bljzfftx.html