mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
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:
parent
77626aa172
commit
bd16e0fc40
@ -24,7 +24,7 @@ static VALUE Clock_Reset( VALUE self )
|
|||||||
return Qnil;
|
return Qnil;
|
||||||
}
|
}
|
||||||
|
|
||||||
VALUE Clock_New( VALUE aKlass )
|
static VALUE Clock_New( VALUE aKlass )
|
||||||
{
|
{
|
||||||
sf::Clock *object = new sf::Clock();
|
sf::Clock *object = new sf::Clock();
|
||||||
VALUE rbData = Data_Wrap_Struct( aKlass, 0, Clock_Free, object );
|
VALUE rbData = Data_Wrap_Struct( aKlass, 0, Clock_Free, object );
|
||||||
|
@ -3,8 +3,6 @@
|
|||||||
|
|
||||||
#include "ruby.h"
|
#include "ruby.h"
|
||||||
|
|
||||||
VALUE Clock_New( VALUE aKlass );
|
|
||||||
|
|
||||||
// Ruby initiation function
|
// Ruby initiation function
|
||||||
void Init_Clock( void );
|
void Init_Clock( void );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user