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
This commit is contained in:
groogy 2010-11-02 22:00:53 +00:00
parent 77626aa172
commit bd16e0fc40
2 changed files with 1 additions and 3 deletions

View File

@ -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 );

View File

@ -3,8 +3,6 @@
#include "ruby.h"
VALUE Clock_New( VALUE aKlass );
// Ruby initiation function
void Init_Clock( void );