From: Matthias Braun Date: Sun, 30 Apr 2006 20:16:07 +0000 (+0000) Subject: another try X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=23ff4a42c108309fda259e6da2f1502ad50c3890;p=supertux.git another try SVN-Revision: 3471 --- diff --git a/src/scripting/wrapper.cpp b/src/scripting/wrapper.cpp index 36735e960..bd1353a60 100644 --- a/src/scripting/wrapper.cpp +++ b/src/scripting/wrapper.cpp @@ -18,7 +18,7 @@ namespace Scripting namespace Wrapper { -static int DisplayEffect_release_hook(SQUserPointer ptr, int ) +static SQInteger DisplayEffect_release_hook(SQUserPointer ptr, int ) { Scripting::DisplayEffect* _this = reinterpret_cast (ptr); delete _this; @@ -189,7 +189,7 @@ static SQInteger DisplayEffect_four_to_three_wrapper(HSQUIRRELVM vm) } -static int Camera_release_hook(SQUserPointer ptr, int ) +static SQInteger Camera_release_hook(SQUserPointer ptr, int ) { Scripting::Camera* _this = reinterpret_cast (ptr); delete _this; @@ -333,7 +333,7 @@ static SQInteger Camera_scroll_to_wrapper(HSQUIRRELVM vm) } -static int Level_release_hook(SQUserPointer ptr, int ) +static SQInteger Level_release_hook(SQUserPointer ptr, int ) { Scripting::Level* _this = reinterpret_cast (ptr); delete _this; @@ -447,7 +447,7 @@ static SQInteger Level_toggle_pause_wrapper(HSQUIRRELVM vm) } -static int ScriptedObject_release_hook(SQUserPointer ptr, int ) +static SQInteger ScriptedObject_release_hook(SQUserPointer ptr, int ) { Scripting::ScriptedObject* _this = reinterpret_cast (ptr); delete _this; @@ -777,7 +777,7 @@ static SQInteger ScriptedObject_get_name_wrapper(HSQUIRRELVM vm) } -static int Text_release_hook(SQUserPointer ptr, int ) +static SQInteger Text_release_hook(SQUserPointer ptr, int ) { Scripting::Text* _this = reinterpret_cast (ptr); delete _this; @@ -952,7 +952,7 @@ static SQInteger Text_set_centered_wrapper(HSQUIRRELVM vm) } -static int Player_release_hook(SQUserPointer ptr, int ) +static SQInteger Player_release_hook(SQUserPointer ptr, int ) { Scripting::Player* _this = reinterpret_cast (ptr); delete _this; @@ -1192,7 +1192,7 @@ static SQInteger Player_kill_wrapper(HSQUIRRELVM vm) } -static int FloatingImage_release_hook(SQUserPointer ptr, int ) +static SQInteger FloatingImage_release_hook(SQUserPointer ptr, int ) { Scripting::FloatingImage* _this = reinterpret_cast (ptr); delete _this; diff --git a/tools/miniswig/create_wrapper.cpp b/tools/miniswig/create_wrapper.cpp index 96d6149b3..53e5b280c 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 int " << _class->name << "_release_hook(SQUserPointer ptr, int )\n" + out << "static SQInteger " << _class->name << "_release_hook(SQUserPointer ptr, int )\n" << "{\n" << ind << ns_prefix << _class->name << "* _this = reinterpret_cast<" << ns_prefix << _class->name