From bd16e0fc409bea9494dc100f4872a7b4512fb8c8 Mon Sep 17 00:00:00 2001 From: groogy Date: Tue, 2 Nov 2010 22:00:53 +0000 Subject: [PATCH] Change so that Clock_New is only used and accessible from within Clock.cpp since I realized that using it directly and not trough a ruby call will mess up ruby's call stack probably git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1591 4e206d99-4929-0410-ac5d-dfc041789085 --- ruby/sfml-system/system/Clock.cpp | 2 +- ruby/sfml-system/system/Clock.hpp | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/ruby/sfml-system/system/Clock.cpp b/ruby/sfml-system/system/Clock.cpp index e2cf0f43f..9b00ea6f8 100644 --- a/ruby/sfml-system/system/Clock.cpp +++ b/ruby/sfml-system/system/Clock.cpp @@ -24,7 +24,7 @@ static VALUE Clock_Reset( VALUE self ) return Qnil; } -VALUE Clock_New( VALUE aKlass ) +static VALUE Clock_New( VALUE aKlass ) { sf::Clock *object = new sf::Clock(); VALUE rbData = Data_Wrap_Struct( aKlass, 0, Clock_Free, object ); diff --git a/ruby/sfml-system/system/Clock.hpp b/ruby/sfml-system/system/Clock.hpp index 589256aad..762b07487 100644 --- a/ruby/sfml-system/system/Clock.hpp +++ b/ruby/sfml-system/system/Clock.hpp @@ -3,8 +3,6 @@ #include "ruby.h" -VALUE Clock_New( VALUE aKlass ); - // Ruby initiation function void Init_Clock( void );