Ensure the stack is clean after luavgl event callbacks

This commit is contained in:
jacqueline
2024-10-01 13:51:10 +10:00
parent 3490cceb6b
commit 825728af23
+2
View File
@@ -34,6 +34,8 @@ static void luavgl_obj_event_cb(lv_event_t *e)
/* args: obj, code */
luavgl_pcall_int(L, 2, 0);
lua_settop(L, top);
}
/* obj:onevent(luavgl.EVENT.PRESSED, function(code, value) -- end) */