Committing genbindings changes

This commit is contained in:
halx99 2023-05-31 12:31:31 +00:00 committed by GitHub Actions
parent 6b5ee65d6e
commit 4899f00893
2 changed files with 222 additions and 0 deletions

View File

@ -101705,6 +101705,216 @@ int lua_ax_base_Device_vibrate(lua_State* tolua_S)
#endif
return 0;
}
int lua_ax_base_Device_prepareImpactFeedbackGenerator(lua_State* tolua_S)
{
int argc = 0;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertable(tolua_S,1,"ax.Device",0,&tolua_err)) goto tolua_lerror;
#endif
argc = lua_gettop(tolua_S) - 1;
if (argc == 1)
{
ax::Device::ImpactFeedbackStyle arg0;
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Device:prepareImpactFeedbackGenerator");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Device_prepareImpactFeedbackGenerator'", nullptr);
return 0;
}
ax::Device::prepareImpactFeedbackGenerator(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Device:prepareImpactFeedbackGenerator",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Device_prepareImpactFeedbackGenerator'.",&tolua_err);
#endif
return 0;
}
int lua_ax_base_Device_impactOccurred(lua_State* tolua_S)
{
int argc = 0;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertable(tolua_S,1,"ax.Device",0,&tolua_err)) goto tolua_lerror;
#endif
argc = lua_gettop(tolua_S) - 1;
if (argc == 1)
{
ax::Device::ImpactFeedbackStyle arg0;
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Device:impactOccurred");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Device_impactOccurred'", nullptr);
return 0;
}
ax::Device::impactOccurred(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Device:impactOccurred",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Device_impactOccurred'.",&tolua_err);
#endif
return 0;
}
int lua_ax_base_Device_prepareNotificationFeedbackGenerator(lua_State* tolua_S)
{
int argc = 0;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertable(tolua_S,1,"ax.Device",0,&tolua_err)) goto tolua_lerror;
#endif
argc = lua_gettop(tolua_S) - 1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Device_prepareNotificationFeedbackGenerator'", nullptr);
return 0;
}
ax::Device::prepareNotificationFeedbackGenerator();
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Device:prepareNotificationFeedbackGenerator",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Device_prepareNotificationFeedbackGenerator'.",&tolua_err);
#endif
return 0;
}
int lua_ax_base_Device_notificationOccurred(lua_State* tolua_S)
{
int argc = 0;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertable(tolua_S,1,"ax.Device",0,&tolua_err)) goto tolua_lerror;
#endif
argc = lua_gettop(tolua_S) - 1;
if (argc == 1)
{
ax::Device::NotificationFeedbackType arg0;
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Device:notificationOccurred");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Device_notificationOccurred'", nullptr);
return 0;
}
ax::Device::notificationOccurred(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Device:notificationOccurred",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Device_notificationOccurred'.",&tolua_err);
#endif
return 0;
}
int lua_ax_base_Device_prepareSelectionFeedbackGenerator(lua_State* tolua_S)
{
int argc = 0;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertable(tolua_S,1,"ax.Device",0,&tolua_err)) goto tolua_lerror;
#endif
argc = lua_gettop(tolua_S) - 1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Device_prepareSelectionFeedbackGenerator'", nullptr);
return 0;
}
ax::Device::prepareSelectionFeedbackGenerator();
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Device:prepareSelectionFeedbackGenerator",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Device_prepareSelectionFeedbackGenerator'.",&tolua_err);
#endif
return 0;
}
int lua_ax_base_Device_selectionChanged(lua_State* tolua_S)
{
int argc = 0;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertable(tolua_S,1,"ax.Device",0,&tolua_err)) goto tolua_lerror;
#endif
argc = lua_gettop(tolua_S) - 1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Device_selectionChanged'", nullptr);
return 0;
}
ax::Device::selectionChanged();
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Device:selectionChanged",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Device_selectionChanged'.",&tolua_err);
#endif
return 0;
}
static int lua_ax_base_Device_finalize(lua_State* tolua_S)
{
printf("luabindings: finalizing LUA object (Device)");
@ -101722,6 +101932,12 @@ int lua_register_ax_base_Device(lua_State* tolua_S)
tolua_function(tolua_S,"setAccelerometerInterval", lua_ax_base_Device_setAccelerometerInterval);
tolua_function(tolua_S,"setKeepScreenOn", lua_ax_base_Device_setKeepScreenOn);
tolua_function(tolua_S,"vibrate", lua_ax_base_Device_vibrate);
tolua_function(tolua_S,"prepareImpactFeedbackGenerator", lua_ax_base_Device_prepareImpactFeedbackGenerator);
tolua_function(tolua_S,"impactOccurred", lua_ax_base_Device_impactOccurred);
tolua_function(tolua_S,"prepareNotificationFeedbackGenerator", lua_ax_base_Device_prepareNotificationFeedbackGenerator);
tolua_function(tolua_S,"notificationOccurred", lua_ax_base_Device_notificationOccurred);
tolua_function(tolua_S,"prepareSelectionFeedbackGenerator", lua_ax_base_Device_prepareSelectionFeedbackGenerator);
tolua_function(tolua_S,"selectionChanged", lua_ax_base_Device_selectionChanged);
tolua_endmodule(tolua_S);
auto typeName = typeid(ax::Device).name(); // rtti is literal storage
g_luaType[reinterpret_cast<uintptr_t>(typeName)] = "ax.Device";

View File

@ -2404,6 +2404,12 @@ int register_all_ax_base(lua_State* tolua_S);