add LUAMOD_API

This commit is contained in:
Cloud Wu
2017-03-16 15:24:11 +08:00
parent b00b006c4a
commit 6170346da2
18 changed files with 53 additions and 23 deletions

View File

@@ -2,6 +2,8 @@
modify from https://github.com/cloudwu/lua-serialize
*/
#define LUA_LIB
#include "skynet_malloc.h"
#include <lua.h>
@@ -594,7 +596,7 @@ luaseri_unpack(lua_State *L) {
return lua_gettop(L) - 1;
}
int
LUAMOD_API int
luaseri_pack(lua_State *L) {
struct block temp;
temp.next = NULL;