/******************************************************************** * Tasmota LVGL callbacks * *******************************************************************/ #include "be_constobj.h" extern int lv0_init(bvm *vm); extern int lvx_tostring(bvm *vm); extern int be_call_c_func(bvm *vm, void * func, const char * return_type, const char * arg_type); int lv_cb_call_any(bvm *vm, const char * return_type, const char * arg_type) { int argc = be_top(vm); // get pointer to callback be_getmember(vm, 1, ".p"); void * cb = be_tocomptr(vm, -1); be_pop(vm, 1); // remove first argument which is the instance `self` for (int i=1; i