lua
huangkunjian
这个作者很懒,什么都没留下…
展开
-
skynet数据结构2
struct message_queue { struct spinlock lock; uint32_t handle; int cap; int head; int tail; int release; int in_global; int overload; int overload_threshold; struct skynet_message *queue; struct message_queue *next; }; struct global_queue { struct message_q原创 2020-08-08 18:00:05 · 103 阅读 · 0 评论 -
skynet数据结构
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; }; struct skynet_env { struct spinlock lock; --初始化 lua_State *L; – luaL_newStat原创 2020-08-08 17:56:56 · 145 阅读 · 0 评论 -
lua程序设计第四版 第30章若干答案
30.1 static t_filter(lua_State* L) { printf(“filter invoke beg\n”); luaL_checktype(L, 1, LUA_TTABLE); luaL_checktype(L, 2, LUA_TFUNCTION); lua_newtable(L); int top = lua_gettop(L); printf(“filter invoke beg–>1 top[%d]\n”, top); int n = luaL_len(L, 1);原创 2020-08-02 23:06:53 · 153 阅读 · 0 评论 -
`lua程序设计第四版 第29章答案
lua程序设计第四版 第29章答案@TOC 29.1 #include <stdio.h> #include<string.h> #include<stdlib.h> #include “lua.h” #include “lauxlib.h” #include “lualib.h” inline int error2(lua_State* L, const char* fmt, …) { va_list argp; va_start(argp, fmt); vfprint原创 2020-08-01 23:08:26 · 186 阅读 · 0 评论