We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fb71d9 commit 2d65488Copy full SHA for 2d65488
emmy_debugger/src/debugger/extension_point.cpp
@@ -30,7 +30,8 @@ int metaAddChild(lua_State *L) {
30
}
31
32
int metaIndex(lua_State *L) {
33
- const Variable *var = (Variable *) lua_touserdata(L, 1);
+ auto *pVar = (Idx<Variable> *) lua_touserdata(L, 1);
34
+ auto var = *pVar;
35
const std::string k = lua_tostring(L, 2);
36
if (k == "name") {
37
lua_pushstring(L, var->name.c_str());
@@ -51,7 +52,8 @@ int metaIndex(lua_State *L) {
51
52
53
54
int metaNewIndex(lua_State *L) {
- auto var = (Variable *) lua_touserdata(L, 1);
55
56
57
58
59
const char *value = lua_tostring(L, 3);
0 commit comments