【修改】1. 结合plugin_manage进行测试;2. 调试过程中发现的问题

This commit is contained in:
niubinghui
2024-08-16 16:14:29 +08:00
parent 57ba762b78
commit 8a66645ea5
3 changed files with 3 additions and 2 deletions

View File

@@ -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)

View File

@@ -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

View File

@@ -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
/* 需要调用的函数入栈, 由于后续在读取参数个数的时候对栈操作较多, 需要先将函数入栈 */