proto-debuger/protoDebuger/lua_bind.cpp

15 lines
289 B
C++
Raw Normal View History

2021-04-15 17:13:04 +00:00
#include "lua_bind.h"
2021-04-17 17:57:39 +00:00
#include "sharedata.h"
2021-04-15 17:13:04 +00:00
int LuaShowData(lua_State *vm)
{
// 获取函数参数:从栈底取一个参数
const char *k = lua_tostring(vm, 1);
if (nullptr != k){
//todo qml显示添加
}
2021-04-17 17:57:39 +00:00
gGlobal.ShowDataInQML(QString(k));
2021-04-15 17:13:04 +00:00
return 0;
}
2021-04-17 17:57:39 +00:00