2013年12月25日

protobuf-gen-lua 编译dll文件

摘要: vs 创建dll空项目引入protobuf-gen-lua工程里的pb.c文件修改原程序1 #ifndef _WIN322 #include 3 #endif1 static int struct_unpack(lua_State *L)2 {3 uint8_t format = luaL_checkinteger(L, 1);4 size_t len;5 const uint8_t* buffer = (uint8_t*)luaL_checklstring(L, 2, &len);6 size_t pos = luaL_checkinteger(L, 3);7... 阅读全文

posted @ 2013-12-25 01:00 Moon Bear 阅读(799) 评论(0) 推荐(0)

导航