【修改】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
|
||||
CFLAGS = -g -Wextra -Wall -O0 -fPIC
|
||||
# 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)
|
||||
$(CC) $(CFLAGS) -shared -o $(TARGET) $(OBJECTS) $(LDLIBS)
|
||||
|
||||
@@ -327,6 +327,7 @@ int lua_mq_create_topic(lua_State *state)
|
||||
free(name);
|
||||
return 0;
|
||||
}
|
||||
global_schema->mq_count += 1;
|
||||
|
||||
lua_rawgeti(state, LUA_REGISTRYINDEX, mq->mq_private_ref);
|
||||
#if 0
|
||||
|
||||
@@ -43,7 +43,7 @@ int lua_chunk_execute(
|
||||
if ((rcount && !returns) || (rcount < 0))
|
||||
return PARAM_ERR;
|
||||
#ifdef LUAPLUGIN_BASIC_UNITTEST
|
||||
LOGDEBUG("now execute chunk, %p, %d\n", state, ref_id);
|
||||
LOGDEBUG("now execute chunk, %p, %d", state, ref_id);
|
||||
#endif
|
||||
|
||||
/* 需要调用的函数入栈, 由于后续在读取参数个数的时候对栈操作较多, 需要先将函数入栈 */
|
||||
|
||||
Reference in New Issue
Block a user