From a253dea007af5988726da8b3840801c9526959e0 Mon Sep 17 00:00:00 2001 From: Tobias Markus Date: Sun, 5 Feb 2023 21:20:13 +0100 Subject: [PATCH] Remove unneeded null check --- src/scripting/wrapper.cpp | 1310 +---------------------------- tools/miniswig/create_wrapper.cpp | 4 - 2 files changed, 1 insertion(+), 1313 deletions(-) diff --git a/src/scripting/wrapper.cpp b/src/scripting/wrapper.cpp index cdb34a8fd7a..388f4bbd290 100644 --- a/src/scripting/wrapper.cpp +++ b/src/scripting/wrapper.cpp @@ -32,10 +32,6 @@ static SQInteger AmbientSound_set_pos_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -71,10 +67,6 @@ static SQInteger AmbientSound_get_pos_x_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_pos_x(); @@ -101,10 +93,6 @@ static SQInteger AmbientSound_get_pos_y_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_pos_y(); @@ -138,10 +126,6 @@ static SQInteger Background_set_image_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - const SQChar* arg0; if(SQ_FAILED(sq_getstring(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a string")); @@ -172,10 +156,6 @@ static SQInteger Background_set_images_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - const SQChar* arg0; if(SQ_FAILED(sq_getstring(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a string")); @@ -216,10 +196,6 @@ static SQInteger Background_set_speed_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -250,10 +226,6 @@ static SQInteger Background_get_color_red_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_color_red(); @@ -280,10 +252,6 @@ static SQInteger Background_get_color_green_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_color_green(); @@ -310,10 +278,6 @@ static SQInteger Background_get_color_blue_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_color_blue(); @@ -340,10 +304,6 @@ static SQInteger Background_get_color_alpha_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_color_alpha(); @@ -370,10 +330,6 @@ static SQInteger Background_set_color_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -419,10 +375,6 @@ static SQInteger Background_fade_color_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -480,10 +432,6 @@ static SQInteger BadGuy_kill_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { _this->kill(); @@ -509,10 +457,6 @@ static SQInteger BadGuy_ignite_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { _this->ignite(); @@ -538,10 +482,6 @@ static SQInteger BadGuy_set_action_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - const SQChar* arg0; if(SQ_FAILED(sq_getstring(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a string")); @@ -577,10 +517,6 @@ static SQInteger BadGuy_set_sprite_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - const SQChar* arg0; if(SQ_FAILED(sq_getstring(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a string")); @@ -618,10 +554,6 @@ static SQInteger Camera_reload_config_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { _this->reload_config(); @@ -647,10 +579,6 @@ static SQInteger Camera_shake_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -691,10 +619,6 @@ static SQInteger Camera_set_pos_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -730,10 +654,6 @@ static SQInteger Camera_set_mode_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - const SQChar* arg0; if(SQ_FAILED(sq_getstring(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a string")); @@ -764,10 +684,6 @@ static SQInteger Camera_scroll_to_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -808,10 +724,6 @@ static SQInteger Camera_get_current_scale_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_current_scale(); @@ -838,10 +750,6 @@ static SQInteger Camera_get_target_scale_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_target_scale(); @@ -868,10 +776,6 @@ static SQInteger Camera_set_scale_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -902,10 +806,6 @@ static SQInteger Camera_scale_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -941,10 +841,6 @@ static SQInteger Camera_ease_scale_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -992,10 +888,6 @@ static SQInteger Candle_get_burning_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { bool return_value = _this->get_burning(); @@ -1022,10 +914,6 @@ static SQInteger Candle_set_burning_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQBool arg0; if(SQ_FAILED(sq_getbool(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a bool")); @@ -1063,10 +951,6 @@ static SQInteger Clouds_set_enabled_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQBool arg0; if(SQ_FAILED(sq_getbool(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a bool")); @@ -1097,10 +981,6 @@ static SQInteger Clouds_get_enabled_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { bool return_value = _this->get_enabled(); @@ -1127,10 +1007,6 @@ static SQInteger Clouds_fade_speed_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -1166,10 +1042,6 @@ static SQInteger Clouds_fade_amount_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQInteger arg0; if(SQ_FAILED(sq_getinteger(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not an integer")); @@ -1210,10 +1082,6 @@ static SQInteger Clouds_set_amount_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQInteger arg0; if(SQ_FAILED(sq_getinteger(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not an integer")); @@ -1256,10 +1124,6 @@ static SQInteger CustomParticles_set_enabled_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQBool arg0; if(SQ_FAILED(sq_getbool(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a bool")); @@ -1290,10 +1154,6 @@ static SQInteger CustomParticles_get_enabled_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { bool return_value = _this->get_enabled(); @@ -1320,10 +1180,6 @@ static SQInteger CustomParticles_clear_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { _this->clear(); @@ -1349,10 +1205,6 @@ static SQInteger CustomParticles_spawn_particles_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQInteger arg0; if(SQ_FAILED(sq_getinteger(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not an integer")); @@ -1388,10 +1240,6 @@ static SQInteger CustomParticles_get_max_amount_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { int return_value = _this->get_max_amount(); @@ -1418,10 +1266,6 @@ static SQInteger CustomParticles_set_max_amount_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQInteger arg0; if(SQ_FAILED(sq_getinteger(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not an integer")); @@ -1452,10 +1296,6 @@ static SQInteger CustomParticles_get_birth_mode_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { std::string return_value = _this->get_birth_mode(); @@ -1483,10 +1323,6 @@ static SQInteger CustomParticles_set_birth_mode_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - const SQChar* arg0; if(SQ_FAILED(sq_getstring(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a string")); @@ -1517,10 +1353,6 @@ static SQInteger CustomParticles_get_death_mode_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { std::string return_value = _this->get_death_mode(); @@ -1548,10 +1380,6 @@ static SQInteger CustomParticles_set_death_mode_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - const SQChar* arg0; if(SQ_FAILED(sq_getstring(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a string")); @@ -1582,10 +1410,6 @@ static SQInteger CustomParticles_get_rotation_mode_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { std::string return_value = _this->get_rotation_mode(); @@ -1613,10 +1437,6 @@ static SQInteger CustomParticles_set_rotation_mode_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - const SQChar* arg0; if(SQ_FAILED(sq_getstring(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a string")); @@ -1647,10 +1467,6 @@ static SQInteger CustomParticles_get_collision_mode_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { std::string return_value = _this->get_collision_mode(); @@ -1678,10 +1494,6 @@ static SQInteger CustomParticles_set_collision_mode_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - const SQChar* arg0; if(SQ_FAILED(sq_getstring(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a string")); @@ -1712,10 +1524,6 @@ static SQInteger CustomParticles_get_offscreen_mode_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { std::string return_value = _this->get_offscreen_mode(); @@ -1743,10 +1551,6 @@ static SQInteger CustomParticles_set_offscreen_mode_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - const SQChar* arg0; if(SQ_FAILED(sq_getstring(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a string")); @@ -1777,10 +1581,6 @@ static SQInteger CustomParticles_get_cover_screen_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { bool return_value = _this->get_cover_screen(); @@ -1807,10 +1607,6 @@ static SQInteger CustomParticles_set_cover_screen_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQBool arg0; if(SQ_FAILED(sq_getbool(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a bool")); @@ -1841,10 +1637,6 @@ static SQInteger CustomParticles_get_delay_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_delay(); @@ -1871,10 +1663,6 @@ static SQInteger CustomParticles_set_delay_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -1905,10 +1693,6 @@ static SQInteger CustomParticles_fade_delay_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -1944,10 +1728,6 @@ static SQInteger CustomParticles_ease_delay_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -1988,10 +1768,6 @@ static SQInteger CustomParticles_get_lifetime_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_lifetime(); @@ -2018,10 +1794,6 @@ static SQInteger CustomParticles_set_lifetime_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -2052,10 +1824,6 @@ static SQInteger CustomParticles_fade_lifetime_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -2091,10 +1859,6 @@ static SQInteger CustomParticles_ease_lifetime_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -2135,10 +1899,6 @@ static SQInteger CustomParticles_get_lifetime_variation_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_lifetime_variation(); @@ -2165,10 +1925,6 @@ static SQInteger CustomParticles_set_lifetime_variation_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -2199,10 +1955,6 @@ static SQInteger CustomParticles_fade_lifetime_variation_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -2238,10 +1990,6 @@ static SQInteger CustomParticles_ease_lifetime_variation_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -2282,10 +2030,6 @@ static SQInteger CustomParticles_get_birth_time_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_birth_time(); @@ -2312,10 +2056,6 @@ static SQInteger CustomParticles_set_birth_time_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -2346,10 +2086,6 @@ static SQInteger CustomParticles_fade_birth_time_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -2385,10 +2121,6 @@ static SQInteger CustomParticles_ease_birth_time_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -2429,10 +2161,6 @@ static SQInteger CustomParticles_get_birth_time_variation_wrapper(HSQUIRRELVM vm } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_birth_time_variation(); @@ -2459,10 +2187,6 @@ static SQInteger CustomParticles_set_birth_time_variation_wrapper(HSQUIRRELVM vm } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -2493,10 +2217,6 @@ static SQInteger CustomParticles_fade_birth_time_variation_wrapper(HSQUIRRELVM v } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -2532,10 +2252,6 @@ static SQInteger CustomParticles_ease_birth_time_variation_wrapper(HSQUIRRELVM v } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -2576,10 +2292,6 @@ static SQInteger CustomParticles_get_death_time_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_death_time(); @@ -2606,10 +2318,6 @@ static SQInteger CustomParticles_set_death_time_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -2640,10 +2348,6 @@ static SQInteger CustomParticles_fade_death_time_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -2679,10 +2383,6 @@ static SQInteger CustomParticles_ease_death_time_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -2723,10 +2423,6 @@ static SQInteger CustomParticles_get_death_time_variation_wrapper(HSQUIRRELVM vm } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_death_time_variation(); @@ -2753,10 +2449,6 @@ static SQInteger CustomParticles_set_death_time_variation_wrapper(HSQUIRRELVM vm } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -2787,10 +2479,6 @@ static SQInteger CustomParticles_fade_death_time_variation_wrapper(HSQUIRRELVM v } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -2826,10 +2514,6 @@ static SQInteger CustomParticles_ease_death_time_variation_wrapper(HSQUIRRELVM v } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -2870,10 +2554,6 @@ static SQInteger CustomParticles_get_speed_x_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_speed_x(); @@ -2900,10 +2580,6 @@ static SQInteger CustomParticles_set_speed_x_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -2934,10 +2610,6 @@ static SQInteger CustomParticles_fade_speed_x_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -2973,10 +2645,6 @@ static SQInteger CustomParticles_ease_speed_x_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -3017,10 +2685,6 @@ static SQInteger CustomParticles_get_speed_y_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_speed_y(); @@ -3047,10 +2711,6 @@ static SQInteger CustomParticles_set_speed_y_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -3081,10 +2741,6 @@ static SQInteger CustomParticles_fade_speed_y_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -3120,10 +2776,6 @@ static SQInteger CustomParticles_ease_speed_y_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -3164,10 +2816,6 @@ static SQInteger CustomParticles_get_speed_variation_x_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_speed_variation_x(); @@ -3194,10 +2842,6 @@ static SQInteger CustomParticles_set_speed_variation_x_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -3228,10 +2872,6 @@ static SQInteger CustomParticles_fade_speed_variation_x_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -3267,10 +2907,6 @@ static SQInteger CustomParticles_ease_speed_variation_x_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -3311,10 +2947,6 @@ static SQInteger CustomParticles_get_speed_variation_y_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_speed_variation_y(); @@ -3341,10 +2973,6 @@ static SQInteger CustomParticles_set_speed_variation_y_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -3375,10 +3003,6 @@ static SQInteger CustomParticles_fade_speed_variation_y_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -3414,10 +3038,6 @@ static SQInteger CustomParticles_ease_speed_variation_y_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -3458,10 +3078,6 @@ static SQInteger CustomParticles_get_acceleration_x_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_acceleration_x(); @@ -3488,10 +3104,6 @@ static SQInteger CustomParticles_set_acceleration_x_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -3522,10 +3134,6 @@ static SQInteger CustomParticles_fade_acceleration_x_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -3561,10 +3169,6 @@ static SQInteger CustomParticles_ease_acceleration_x_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -3605,10 +3209,6 @@ static SQInteger CustomParticles_get_acceleration_y_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_acceleration_y(); @@ -3635,10 +3235,6 @@ static SQInteger CustomParticles_set_acceleration_y_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -3669,10 +3265,6 @@ static SQInteger CustomParticles_fade_acceleration_y_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -3708,10 +3300,6 @@ static SQInteger CustomParticles_ease_acceleration_y_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -3752,10 +3340,6 @@ static SQInteger CustomParticles_get_friction_x_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_friction_x(); @@ -3782,10 +3366,6 @@ static SQInteger CustomParticles_set_friction_x_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -3816,10 +3396,6 @@ static SQInteger CustomParticles_fade_friction_x_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -3855,10 +3431,6 @@ static SQInteger CustomParticles_ease_friction_x_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -3899,10 +3471,6 @@ static SQInteger CustomParticles_get_friction_y_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_friction_y(); @@ -3929,10 +3497,6 @@ static SQInteger CustomParticles_set_friction_y_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -3963,10 +3527,6 @@ static SQInteger CustomParticles_fade_friction_y_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -4002,10 +3562,6 @@ static SQInteger CustomParticles_ease_friction_y_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -4046,10 +3602,6 @@ static SQInteger CustomParticles_get_feather_factor_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_feather_factor(); @@ -4076,10 +3628,6 @@ static SQInteger CustomParticles_set_feather_factor_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -4110,10 +3658,6 @@ static SQInteger CustomParticles_fade_feather_factor_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -4149,10 +3693,6 @@ static SQInteger CustomParticles_ease_feather_factor_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -4193,10 +3733,6 @@ static SQInteger CustomParticles_get_rotation_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_rotation(); @@ -4223,10 +3759,6 @@ static SQInteger CustomParticles_set_rotation_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -4257,10 +3789,6 @@ static SQInteger CustomParticles_fade_rotation_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -4296,10 +3824,6 @@ static SQInteger CustomParticles_ease_rotation_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -4340,10 +3864,6 @@ static SQInteger CustomParticles_get_rotation_variation_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_rotation_variation(); @@ -4370,10 +3890,6 @@ static SQInteger CustomParticles_set_rotation_variation_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -4404,10 +3920,6 @@ static SQInteger CustomParticles_fade_rotation_variation_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -4443,10 +3955,6 @@ static SQInteger CustomParticles_ease_rotation_variation_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -4487,10 +3995,6 @@ static SQInteger CustomParticles_get_rotation_speed_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_rotation_speed(); @@ -4517,10 +4021,6 @@ static SQInteger CustomParticles_set_rotation_speed_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -4551,10 +4051,6 @@ static SQInteger CustomParticles_fade_rotation_speed_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -4590,10 +4086,6 @@ static SQInteger CustomParticles_ease_rotation_speed_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -4634,10 +4126,6 @@ static SQInteger CustomParticles_get_rotation_speed_variation_wrapper(HSQUIRRELV } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_rotation_speed_variation(); @@ -4664,10 +4152,6 @@ static SQInteger CustomParticles_set_rotation_speed_variation_wrapper(HSQUIRRELV } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -4698,10 +4182,6 @@ static SQInteger CustomParticles_fade_rotation_speed_variation_wrapper(HSQUIRREL } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -4737,10 +4217,6 @@ static SQInteger CustomParticles_ease_rotation_speed_variation_wrapper(HSQUIRREL } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -4781,10 +4257,6 @@ static SQInteger CustomParticles_get_rotation_acceleration_wrapper(HSQUIRRELVM v } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_rotation_acceleration(); @@ -4811,10 +4283,6 @@ static SQInteger CustomParticles_set_rotation_acceleration_wrapper(HSQUIRRELVM v } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -4845,10 +4313,6 @@ static SQInteger CustomParticles_fade_rotation_acceleration_wrapper(HSQUIRRELVM } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -4884,10 +4348,6 @@ static SQInteger CustomParticles_ease_rotation_acceleration_wrapper(HSQUIRRELVM } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -4928,10 +4388,6 @@ static SQInteger CustomParticles_get_rotation_decceleration_wrapper(HSQUIRRELVM } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_rotation_decceleration(); @@ -4958,10 +4414,6 @@ static SQInteger CustomParticles_set_rotation_decceleration_wrapper(HSQUIRRELVM } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -4992,10 +4444,6 @@ static SQInteger CustomParticles_fade_rotation_decceleration_wrapper(HSQUIRRELVM } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -5031,10 +4479,6 @@ static SQInteger CustomParticles_ease_rotation_decceleration_wrapper(HSQUIRRELVM } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -5082,10 +4526,6 @@ static SQInteger Decal_fade_sprite_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - const SQChar* arg0; if(SQ_FAILED(sq_getstring(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a string")); @@ -5121,10 +4561,6 @@ static SQInteger Decal_change_sprite_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - const SQChar* arg0; if(SQ_FAILED(sq_getstring(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a string")); @@ -5155,10 +4591,6 @@ static SQInteger Decal_fade_in_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -5189,10 +4621,6 @@ static SQInteger Decal_fade_out_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -5230,10 +4658,6 @@ static SQInteger Dispenser_activate_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { _this->activate(); @@ -5259,10 +4683,6 @@ static SQInteger Dispenser_deactivate_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { _this->deactivate(); @@ -5295,10 +4715,6 @@ static SQInteger DisplayEffect_fade_out_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -5329,10 +4745,6 @@ static SQInteger DisplayEffect_fade_in_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -5363,10 +4775,6 @@ static SQInteger DisplayEffect_set_black_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQBool arg0; if(SQ_FAILED(sq_getbool(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a bool")); @@ -5397,10 +4805,6 @@ static SQInteger DisplayEffect_is_black_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { bool return_value = _this->is_black(); @@ -5427,10 +4831,6 @@ static SQInteger DisplayEffect_sixteen_to_nine_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -5461,10 +4861,6 @@ static SQInteger DisplayEffect_four_to_three_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -5530,10 +4926,6 @@ static SQInteger FloatingImage_set_layer_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQInteger arg0; if(SQ_FAILED(sq_getinteger(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not an integer")); @@ -5564,10 +4956,6 @@ static SQInteger FloatingImage_get_layer_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { int return_value = _this->get_layer(); @@ -5594,10 +4982,6 @@ static SQInteger FloatingImage_set_pos_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -5633,10 +5017,6 @@ static SQInteger FloatingImage_get_pos_x_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_pos_x(); @@ -5663,10 +5043,6 @@ static SQInteger FloatingImage_get_pos_y_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_pos_y(); @@ -5693,10 +5069,6 @@ static SQInteger FloatingImage_set_anchor_point_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQInteger arg0; if(SQ_FAILED(sq_getinteger(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not an integer")); @@ -5727,10 +5099,6 @@ static SQInteger FloatingImage_get_anchor_point_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { int return_value = _this->get_anchor_point(); @@ -5757,10 +5125,6 @@ static SQInteger FloatingImage_set_visible_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQBool arg0; if(SQ_FAILED(sq_getbool(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a bool")); @@ -5791,10 +5155,6 @@ static SQInteger FloatingImage_get_visible_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { bool return_value = _this->get_visible(); @@ -5821,10 +5181,6 @@ static SQInteger FloatingImage_set_action_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - const SQChar* arg0; if(SQ_FAILED(sq_getstring(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a string")); @@ -5855,10 +5211,6 @@ static SQInteger FloatingImage_get_action_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { std::string return_value = _this->get_action(); @@ -5886,10 +5238,6 @@ static SQInteger FloatingImage_fade_in_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -5920,10 +5268,6 @@ static SQInteger FloatingImage_fade_out_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -5961,10 +5305,6 @@ static SQInteger GameObjectManager_set_ambient_light_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -6005,10 +5345,6 @@ static SQInteger GameObjectManager_fade_to_ambient_light_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -6054,10 +5390,6 @@ static SQInteger GameObjectManager_get_ambient_red_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_ambient_red(); @@ -6084,10 +5416,6 @@ static SQInteger GameObjectManager_get_ambient_green_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_ambient_green(); @@ -6114,10 +5442,6 @@ static SQInteger GameObjectManager_get_ambient_blue_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_ambient_blue(); @@ -6144,10 +5468,6 @@ static SQInteger GameObjectManager_set_music_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - const SQChar* arg0; if(SQ_FAILED(sq_getstring(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a string")); @@ -6185,10 +5505,6 @@ static SQInteger Gradient_set_direction_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - const SQChar* arg0; if(SQ_FAILED(sq_getstring(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a string")); @@ -6219,10 +5535,6 @@ static SQInteger Gradient_get_direction_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { std::string return_value = _this->get_direction(); @@ -6250,10 +5562,6 @@ static SQInteger Gradient_set_color1_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -6294,10 +5602,6 @@ static SQInteger Gradient_set_color2_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -6338,10 +5642,6 @@ static SQInteger Gradient_set_colors_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -6397,10 +5697,6 @@ static SQInteger Gradient_fade_color1_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -6446,10 +5742,6 @@ static SQInteger Gradient_fade_color2_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -6495,10 +5787,6 @@ static SQInteger Gradient_fade_colors_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -6559,10 +5847,6 @@ static SQInteger Gradient_swap_colors_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { _this->swap_colors(); @@ -6595,10 +5879,6 @@ static SQInteger LevelTime_start_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { _this->start(); @@ -6624,10 +5904,6 @@ static SQInteger LevelTime_stop_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { _this->stop(); @@ -6653,10 +5929,6 @@ static SQInteger LevelTime_get_time_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_time(); @@ -6683,10 +5955,6 @@ static SQInteger LevelTime_set_time_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -6724,10 +5992,6 @@ static SQInteger LitObject_get_action_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { std::string return_value = _this->get_action(); @@ -6755,10 +6019,6 @@ static SQInteger LitObject_set_action_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - const SQChar* arg0; if(SQ_FAILED(sq_getstring(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a string")); @@ -6789,10 +6049,6 @@ static SQInteger LitObject_get_light_action_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { std::string return_value = _this->get_light_action(); @@ -6820,10 +6076,6 @@ static SQInteger LitObject_set_light_action_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - const SQChar* arg0; if(SQ_FAILED(sq_getstring(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a string")); @@ -6861,10 +6113,6 @@ static SQInteger ParticleSystem_set_enabled_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQBool arg0; if(SQ_FAILED(sq_getbool(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a bool")); @@ -6895,10 +6143,6 @@ static SQInteger ParticleSystem_get_enabled_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { bool return_value = _this->get_enabled(); @@ -6932,10 +6176,6 @@ static SQInteger Platform_goto_node_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQInteger arg0; if(SQ_FAILED(sq_getinteger(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not an integer")); @@ -6966,10 +6206,6 @@ static SQInteger Platform_start_moving_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { _this->start_moving(); @@ -6995,10 +6231,6 @@ static SQInteger Platform_stop_moving_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { _this->stop_moving(); @@ -7024,10 +6256,6 @@ static SQInteger Platform_set_action_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - const SQChar* arg0; if(SQ_FAILED(sq_getstring(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a string")); @@ -7070,10 +6298,6 @@ static SQInteger Player_add_bonus_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - const SQChar* arg0; if(SQ_FAILED(sq_getstring(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a string")); @@ -7105,10 +6329,6 @@ static SQInteger Player_set_bonus_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - const SQChar* arg0; if(SQ_FAILED(sq_getstring(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a string")); @@ -7140,10 +6360,6 @@ static SQInteger Player_add_coins_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQInteger arg0; if(SQ_FAILED(sq_getinteger(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not an integer")); @@ -7174,10 +6390,6 @@ static SQInteger Player_get_coins_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { int return_value = _this->get_coins(); @@ -7204,10 +6416,6 @@ static SQInteger Player_make_invincible_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { _this->make_invincible(); @@ -7233,10 +6441,6 @@ static SQInteger Player_deactivate_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { _this->deactivate(); @@ -7262,10 +6466,6 @@ static SQInteger Player_activate_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { _this->activate(); @@ -7291,10 +6491,6 @@ static SQInteger Player_walk_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -7325,10 +6521,6 @@ static SQInteger Player_set_dir_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQBool arg0; if(SQ_FAILED(sq_getbool(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a bool")); @@ -7359,10 +6551,6 @@ static SQInteger Player_set_visible_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQBool arg0; if(SQ_FAILED(sq_getbool(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a bool")); @@ -7393,10 +6581,6 @@ static SQInteger Player_get_visible_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { bool return_value = _this->get_visible(); @@ -7423,10 +6607,6 @@ static SQInteger Player_kill_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQBool arg0; if(SQ_FAILED(sq_getbool(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a bool")); @@ -7457,10 +6637,6 @@ static SQInteger Player_set_ghost_mode_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQBool arg0; if(SQ_FAILED(sq_getbool(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a bool")); @@ -7491,10 +6667,6 @@ static SQInteger Player_get_ghost_mode_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { bool return_value = _this->get_ghost_mode(); @@ -7521,10 +6693,6 @@ static SQInteger Player_kick_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { _this->kick(); @@ -7550,10 +6718,6 @@ static SQInteger Player_do_cheer_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { _this->do_cheer(); @@ -7579,10 +6743,6 @@ static SQInteger Player_do_duck_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { _this->do_duck(); @@ -7608,10 +6768,6 @@ static SQInteger Player_do_standup_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { _this->do_standup(); @@ -7637,10 +6793,6 @@ static SQInteger Player_do_backflip_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { _this->do_backflip(); @@ -7666,10 +6818,6 @@ static SQInteger Player_do_jump_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -7700,10 +6848,6 @@ static SQInteger Player_trigger_sequence_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - const SQChar* arg0; if(SQ_FAILED(sq_getstring(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a string")); @@ -7734,10 +6878,6 @@ static SQInteger Player_use_scripting_controller_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQBool arg0; if(SQ_FAILED(sq_getbool(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a bool")); @@ -7768,10 +6908,6 @@ static SQInteger Player_has_grabbed_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - const SQChar* arg0; if(SQ_FAILED(sq_getstring(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a string")); @@ -7803,10 +6939,6 @@ static SQInteger Player_do_scripting_controller_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - const SQChar* arg0; if(SQ_FAILED(sq_getstring(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a string")); @@ -7842,10 +6974,6 @@ static SQInteger Player_get_velocity_x_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_velocity_x(); @@ -7872,10 +7000,6 @@ static SQInteger Player_get_velocity_y_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_velocity_y(); @@ -7902,10 +7026,6 @@ static SQInteger Player_get_x_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_x(); @@ -7932,10 +7052,6 @@ static SQInteger Player_get_y_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_y(); @@ -7962,10 +7078,6 @@ static SQInteger Player_set_pos_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -8008,10 +7120,6 @@ static SQInteger Rain_set_enabled_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQBool arg0; if(SQ_FAILED(sq_getbool(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a bool")); @@ -8042,10 +7150,6 @@ static SQInteger Rain_get_enabled_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { bool return_value = _this->get_enabled(); @@ -8072,10 +7176,6 @@ static SQInteger Rain_fade_speed_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -8111,10 +7211,6 @@ static SQInteger Rain_fade_amount_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -8150,10 +7246,6 @@ static SQInteger Rain_fade_angle_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -8208,10 +7300,6 @@ static SQInteger ScriptedObject_set_action_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - const SQChar* arg0; if(SQ_FAILED(sq_getstring(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a string")); @@ -8242,10 +7330,6 @@ static SQInteger ScriptedObject_get_action_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { std::string return_value = _this->get_action(); @@ -8273,10 +7357,6 @@ static SQInteger ScriptedObject_move_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -8312,10 +7392,6 @@ static SQInteger ScriptedObject_set_pos_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -8351,10 +7427,6 @@ static SQInteger ScriptedObject_get_pos_x_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_pos_x(); @@ -8381,10 +7453,6 @@ static SQInteger ScriptedObject_get_pos_y_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_pos_y(); @@ -8411,10 +7479,6 @@ static SQInteger ScriptedObject_set_velocity_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -8450,10 +7514,6 @@ static SQInteger ScriptedObject_get_velocity_x_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_velocity_x(); @@ -8480,10 +7540,6 @@ static SQInteger ScriptedObject_get_velocity_y_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_velocity_y(); @@ -8510,10 +7566,6 @@ static SQInteger ScriptedObject_enable_gravity_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQBool arg0; if(SQ_FAILED(sq_getbool(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a bool")); @@ -8544,10 +7596,6 @@ static SQInteger ScriptedObject_gravity_enabled_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { bool return_value = _this->gravity_enabled(); @@ -8574,10 +7622,6 @@ static SQInteger ScriptedObject_set_visible_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQBool arg0; if(SQ_FAILED(sq_getbool(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a bool")); @@ -8608,10 +7652,6 @@ static SQInteger ScriptedObject_is_visible_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { bool return_value = _this->is_visible(); @@ -8638,10 +7678,6 @@ static SQInteger ScriptedObject_set_solid_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQBool arg0; if(SQ_FAILED(sq_getbool(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a bool")); @@ -8670,11 +7706,7 @@ static SQInteger ScriptedObject_is_solid_wrapper(HSQUIRRELVM vm) sq_throwerror(vm, _SC("'is_solid' called without instance")); return SQ_ERROR; } - auto _this = reinterpret_cast (data); - - if (_this == nullptr) { - return SQ_ERROR; - } + auto _this = reinterpret_cast (data); try { @@ -8702,10 +7734,6 @@ static SQInteger ScriptedObject_get_name_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { std::string return_value = _this->get_name(); @@ -8740,10 +7768,6 @@ static SQInteger Sector_set_gravity_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -8781,10 +7805,6 @@ static SQInteger Spotlight_set_direction_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - const SQChar* arg0; if(SQ_FAILED(sq_getstring(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a string")); @@ -8815,10 +7835,6 @@ static SQInteger Spotlight_set_angle_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -8849,10 +7865,6 @@ static SQInteger Spotlight_fade_angle_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -8888,10 +7900,6 @@ static SQInteger Spotlight_ease_angle_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -8932,10 +7940,6 @@ static SQInteger Spotlight_set_speed_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -8966,10 +7970,6 @@ static SQInteger Spotlight_fade_speed_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -9005,10 +8005,6 @@ static SQInteger Spotlight_ease_speed_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -9049,10 +8045,6 @@ static SQInteger Spotlight_set_color_rgba_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -9098,10 +8090,6 @@ static SQInteger Spotlight_fade_color_rgba_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -9152,10 +8140,6 @@ static SQInteger Spotlight_ease_color_rgba_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -9218,10 +8202,6 @@ static SQInteger Text_set_text_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - const SQChar* arg0; if(SQ_FAILED(sq_getstring(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a string")); @@ -9252,10 +8232,6 @@ static SQInteger Text_set_font_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - const SQChar* arg0; if(SQ_FAILED(sq_getstring(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a string")); @@ -9286,10 +8262,6 @@ static SQInteger Text_fade_in_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -9320,10 +8292,6 @@ static SQInteger Text_fade_out_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -9354,10 +8322,6 @@ static SQInteger Text_grow_in_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -9388,10 +8352,6 @@ static SQInteger Text_grow_out_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -9422,10 +8382,6 @@ static SQInteger Text_set_visible_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQBool arg0; if(SQ_FAILED(sq_getbool(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a bool")); @@ -9456,10 +8412,6 @@ static SQInteger Text_set_centered_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQBool arg0; if(SQ_FAILED(sq_getbool(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a bool")); @@ -9490,10 +8442,6 @@ static SQInteger Text_set_pos_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -9529,10 +8477,6 @@ static SQInteger Text_get_pos_x_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_pos_x(); @@ -9559,10 +8503,6 @@ static SQInteger Text_get_pos_y_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_pos_y(); @@ -9589,10 +8529,6 @@ static SQInteger Text_set_anchor_point_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQInteger arg0; if(SQ_FAILED(sq_getinteger(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not an integer")); @@ -9623,10 +8559,6 @@ static SQInteger Text_get_anchor_point_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { int return_value = _this->get_anchor_point(); @@ -9653,10 +8585,6 @@ static SQInteger Text_set_anchor_offset_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -9692,10 +8620,6 @@ static SQInteger Text_set_front_fill_color_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -9741,10 +8665,6 @@ static SQInteger Text_set_back_fill_color_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -9790,10 +8710,6 @@ static SQInteger Text_set_text_color_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -9839,10 +8755,6 @@ static SQInteger Text_set_roundness_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -9880,10 +8792,6 @@ static SQInteger TextArray_clear_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { _this->clear(); @@ -9909,10 +8817,6 @@ static SQInteger TextArray_add_text_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - const SQChar* arg0; if(SQ_FAILED(sq_getstring(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a string")); @@ -9943,10 +8847,6 @@ static SQInteger TextArray_add_text_duration_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - const SQChar* arg0; if(SQ_FAILED(sq_getstring(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a string")); @@ -9982,10 +8882,6 @@ static SQInteger TextArray_set_text_index_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQInteger arg0; if(SQ_FAILED(sq_getinteger(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not an integer")); @@ -10016,10 +8912,6 @@ static SQInteger TextArray_set_keep_visible_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQBool arg0; if(SQ_FAILED(sq_getbool(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a bool")); @@ -10050,10 +8942,6 @@ static SQInteger TextArray_set_fade_transition_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQBool arg0; if(SQ_FAILED(sq_getbool(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a bool")); @@ -10084,10 +8972,6 @@ static SQInteger TextArray_set_fade_time_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -10118,10 +9002,6 @@ static SQInteger TextArray_set_done_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQBool arg0; if(SQ_FAILED(sq_getbool(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a bool")); @@ -10152,10 +9032,6 @@ static SQInteger TextArray_set_auto_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQBool arg0; if(SQ_FAILED(sq_getbool(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a bool")); @@ -10186,10 +9062,6 @@ static SQInteger TextArray_next_text_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { _this->next_text(); @@ -10215,10 +9087,6 @@ static SQInteger TextArray_prev_text_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { _this->prev_text(); @@ -10244,10 +9112,6 @@ static SQInteger TextArray_set_text_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - const SQChar* arg0; if(SQ_FAILED(sq_getstring(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a string")); @@ -10278,10 +9142,6 @@ static SQInteger TextArray_set_font_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - const SQChar* arg0; if(SQ_FAILED(sq_getstring(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a string")); @@ -10312,10 +9172,6 @@ static SQInteger TextArray_fade_in_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -10346,10 +9202,6 @@ static SQInteger TextArray_fade_out_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -10380,10 +9232,6 @@ static SQInteger TextArray_set_visible_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQBool arg0; if(SQ_FAILED(sq_getbool(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a bool")); @@ -10414,10 +9262,6 @@ static SQInteger TextArray_set_centered_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQBool arg0; if(SQ_FAILED(sq_getbool(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a bool")); @@ -10448,10 +9292,6 @@ static SQInteger TextArray_set_pos_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -10487,10 +9327,6 @@ static SQInteger TextArray_get_pos_x_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_pos_x(); @@ -10517,10 +9353,6 @@ static SQInteger TextArray_get_pos_y_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_pos_y(); @@ -10547,10 +9379,6 @@ static SQInteger TextArray_set_anchor_point_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQInteger arg0; if(SQ_FAILED(sq_getinteger(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not an integer")); @@ -10581,10 +9409,6 @@ static SQInteger TextArray_get_anchor_point_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { int return_value = _this->get_anchor_point(); @@ -10611,10 +9435,6 @@ static SQInteger TextArray_set_anchor_offset_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -10650,10 +9470,6 @@ static SQInteger TextArray_set_front_fill_color_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -10699,10 +9515,6 @@ static SQInteger TextArray_set_back_fill_color_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -10748,10 +9560,6 @@ static SQInteger TextArray_set_text_color_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -10797,10 +9605,6 @@ static SQInteger TextArray_set_roundness_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -10838,10 +9642,6 @@ static SQInteger Thunderstorm_start_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { _this->start(); @@ -10867,10 +9667,6 @@ static SQInteger Thunderstorm_stop_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { _this->stop(); @@ -10896,10 +9692,6 @@ static SQInteger Thunderstorm_thunder_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { _this->thunder(); @@ -10925,10 +9717,6 @@ static SQInteger Thunderstorm_lightning_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { _this->lightning(); @@ -10954,10 +9742,6 @@ static SQInteger Thunderstorm_flash_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { _this->flash(); @@ -10983,10 +9767,6 @@ static SQInteger Thunderstorm_electrify_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { _this->electrify(); @@ -11019,10 +9799,6 @@ static SQInteger TileMap_goto_node_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQInteger arg0; if(SQ_FAILED(sq_getinteger(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not an integer")); @@ -11053,10 +9829,6 @@ static SQInteger TileMap_start_moving_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { _this->start_moving(); @@ -11082,10 +9854,6 @@ static SQInteger TileMap_stop_moving_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { _this->stop_moving(); @@ -11111,10 +9879,6 @@ static SQInteger TileMap_get_tile_id_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQInteger arg0; if(SQ_FAILED(sq_getinteger(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not an integer")); @@ -11151,10 +9915,6 @@ static SQInteger TileMap_get_tile_id_at_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -11191,10 +9951,6 @@ static SQInteger TileMap_change_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQInteger arg0; if(SQ_FAILED(sq_getinteger(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not an integer")); @@ -11235,10 +9991,6 @@ static SQInteger TileMap_change_at_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -11279,10 +10031,6 @@ static SQInteger TileMap_fade_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -11318,10 +10066,6 @@ static SQInteger TileMap_tint_fade_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -11372,10 +10116,6 @@ static SQInteger TileMap_set_alpha_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQFloat arg0; if(SQ_FAILED(sq_getfloat(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a float")); @@ -11406,10 +10146,6 @@ static SQInteger TileMap_get_alpha_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_alpha(); @@ -11436,10 +10172,6 @@ static SQInteger TileMap_set_solid_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQBool arg0; if(SQ_FAILED(sq_getbool(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a bool")); @@ -11477,10 +10209,6 @@ static SQInteger Torch_get_burning_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { bool return_value = _this->get_burning(); @@ -11507,10 +10235,6 @@ static SQInteger Torch_set_burning_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQBool arg0; if(SQ_FAILED(sq_getbool(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a bool")); @@ -11548,10 +10272,6 @@ static SQInteger WillOWisp_goto_node_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - SQInteger arg0; if(SQ_FAILED(sq_getinteger(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not an integer")); @@ -11582,10 +10302,6 @@ static SQInteger WillOWisp_set_state_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - const SQChar* arg0; if(SQ_FAILED(sq_getstring(vm, 2, &arg0))) { sq_throwerror(vm, _SC("Argument 1 not a string")); @@ -11616,10 +10332,6 @@ static SQInteger WillOWisp_start_moving_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { _this->start_moving(); @@ -11645,10 +10357,6 @@ static SQInteger WillOWisp_stop_moving_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { _this->stop_moving(); @@ -11681,10 +10389,6 @@ static SQInteger Wind_start_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { _this->start(); @@ -11710,10 +10414,6 @@ static SQInteger Wind_stop_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { _this->stop(); @@ -11746,10 +10446,6 @@ static SQInteger WorldMap_get_tux_x_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_tux_x(); @@ -11776,10 +10472,6 @@ static SQInteger WorldMap_get_tux_y_wrapper(HSQUIRRELVM vm) } auto _this = reinterpret_cast (data); - if (_this == nullptr) { - return SQ_ERROR; - } - try { float return_value = _this->get_tux_y(); diff --git a/tools/miniswig/create_wrapper.cpp b/tools/miniswig/create_wrapper.cpp index 2e1b90b066c..78147f584bd 100644 --- a/tools/miniswig/create_wrapper.cpp +++ b/tools/miniswig/create_wrapper.cpp @@ -301,10 +301,6 @@ WrapperCreator::create_function_wrapper(Class* _class, Function* function) out << ind << "}\n"; out << ind << "auto _this = reinterpret_cast<" << ns_prefix << _class->name << "*> (data);\n"; out << "\n"; - out << ind << "if (_this == nullptr) {\n"; - out << ind << ind << "return SQ_ERROR;\n"; - out << ind << "}\n"; - out << "\n"; } // custom function?