From: Matthias Braun Date: Sun, 30 Apr 2006 20:28:41 +0000 (+0000) Subject: again X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=9e2d7af065a5b128912ef4c44e5c5014894a7022;p=supertux.git again SVN-Revision: 3472 --- diff --git a/src/scripting/wrapper.cpp b/src/scripting/wrapper.cpp index bd1353a60..bd0935e2a 100644 --- a/src/scripting/wrapper.cpp +++ b/src/scripting/wrapper.cpp @@ -18,7 +18,7 @@ namespace Scripting namespace Wrapper { -static SQInteger DisplayEffect_release_hook(SQUserPointer ptr, int ) +static SQInteger DisplayEffect_release_hook(SQUserPointer ptr, SQInteger ) { Scripting::DisplayEffect* _this = reinterpret_cast (ptr); delete _this; @@ -189,7 +189,7 @@ static SQInteger DisplayEffect_four_to_three_wrapper(HSQUIRRELVM vm) } -static SQInteger Camera_release_hook(SQUserPointer ptr, int ) +static SQInteger Camera_release_hook(SQUserPointer ptr, SQInteger ) { Scripting::Camera* _this = reinterpret_cast (ptr); delete _this; @@ -333,7 +333,7 @@ static SQInteger Camera_scroll_to_wrapper(HSQUIRRELVM vm) } -static SQInteger Level_release_hook(SQUserPointer ptr, int ) +static SQInteger Level_release_hook(SQUserPointer ptr, SQInteger ) { Scripting::Level* _this = reinterpret_cast (ptr); delete _this; @@ -447,7 +447,7 @@ static SQInteger Level_toggle_pause_wrapper(HSQUIRRELVM vm) } -static SQInteger ScriptedObject_release_hook(SQUserPointer ptr, int ) +static SQInteger ScriptedObject_release_hook(SQUserPointer ptr, SQInteger ) { Scripting::ScriptedObject* _this = reinterpret_cast (ptr); delete _this; @@ -777,7 +777,7 @@ static SQInteger ScriptedObject_get_name_wrapper(HSQUIRRELVM vm) } -static SQInteger Text_release_hook(SQUserPointer ptr, int ) +static SQInteger Text_release_hook(SQUserPointer ptr, SQInteger ) { Scripting::Text* _this = reinterpret_cast (ptr); delete _this; @@ -952,7 +952,7 @@ static SQInteger Text_set_centered_wrapper(HSQUIRRELVM vm) } -static SQInteger Player_release_hook(SQUserPointer ptr, int ) +static SQInteger Player_release_hook(SQUserPointer ptr, SQInteger ) { Scripting::Player* _this = reinterpret_cast (ptr); delete _this; @@ -1192,7 +1192,7 @@ static SQInteger Player_kill_wrapper(HSQUIRRELVM vm) } -static SQInteger FloatingImage_release_hook(SQUserPointer ptr, int ) +static SQInteger FloatingImage_release_hook(SQUserPointer ptr, SQInteger ) { Scripting::FloatingImage* _this = reinterpret_cast (ptr); delete _this; diff --git a/tools/miniswig/create_wrapper.cpp b/tools/miniswig/create_wrapper.cpp index 53e5b280c..ef299a9f7 100644 --- a/tools/miniswig/create_wrapper.cpp +++ b/tools/miniswig/create_wrapper.cpp @@ -520,7 +520,7 @@ WrapperCreator::create_squirrel_instance(Class* _class) void WrapperCreator::create_class_release_hook(Class* _class) { - out << "static SQInteger " << _class->name << "_release_hook(SQUserPointer ptr, int )\n" + out << "static SQInteger " << _class->name << "_release_hook(SQUserPointer ptr, SQInteger )\n" << "{\n" << ind << ns_prefix << _class->name << "* _this = reinterpret_cast<" << ns_prefix << _class->name