【修改】1. 结合plugin_manage进行测试;2. 调试过程中发现的问题
This commit is contained in:
@@ -22,7 +22,7 @@ OBJECTS := lua_plugin_data.o \
|
|||||||
INCLUDE = -I$(TOPDIR)/dependence/include -I$(TOPDIR)/include
|
INCLUDE = -I$(TOPDIR)/dependence/include -I$(TOPDIR)/include
|
||||||
CFLAGS = -g -Wextra -Wall -O0 -fPIC
|
CFLAGS = -g -Wextra -Wall -O0 -fPIC
|
||||||
# CFLAGS += -pedantic -fsanitize=address
|
# CFLAGS += -pedantic -fsanitize=address
|
||||||
LDLIBS = -L$(TOPDIR)/dependence/lib -llua -ltoml -ldl -lm
|
LDLIBS = -L$(TOPDIR)/dependence/lib -llua -ltoml -lplugin_manager -ldl -lm
|
||||||
|
|
||||||
all:$(OBJECTS)
|
all:$(OBJECTS)
|
||||||
$(CC) $(CFLAGS) -shared -o $(TARGET) $(OBJECTS) $(LDLIBS)
|
$(CC) $(CFLAGS) -shared -o $(TARGET) $(OBJECTS) $(LDLIBS)
|
||||||
|
|||||||
@@ -327,6 +327,7 @@ int lua_mq_create_topic(lua_State *state)
|
|||||||
free(name);
|
free(name);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
global_schema->mq_count += 1;
|
||||||
|
|
||||||
lua_rawgeti(state, LUA_REGISTRYINDEX, mq->mq_private_ref);
|
lua_rawgeti(state, LUA_REGISTRYINDEX, mq->mq_private_ref);
|
||||||
#if 0
|
#if 0
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ int lua_chunk_execute(
|
|||||||
if ((rcount && !returns) || (rcount < 0))
|
if ((rcount && !returns) || (rcount < 0))
|
||||||
return PARAM_ERR;
|
return PARAM_ERR;
|
||||||
#ifdef LUAPLUGIN_BASIC_UNITTEST
|
#ifdef LUAPLUGIN_BASIC_UNITTEST
|
||||||
LOGDEBUG("now execute chunk, %p, %d\n", state, ref_id);
|
LOGDEBUG("now execute chunk, %p, %d", state, ref_id);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* 需要调用的函数入栈, 由于后续在读取参数个数的时候对栈操作较多, 需要先将函数入栈 */
|
/* 需要调用的函数入栈, 由于后续在读取参数个数的时候对栈操作较多, 需要先将函数入栈 */
|
||||||
|
|||||||
Reference in New Issue
Block a user