Added so that version information is available in the SFML namespace.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1778 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
cf779be180
commit
2a79a3ec49
@ -44,6 +44,8 @@ void Init_system( void )
|
|||||||
/* SFML namespace which contains the classes of this module. */
|
/* SFML namespace which contains the classes of this module. */
|
||||||
globalSFMLNamespace = rb_define_module( "SFML" );
|
globalSFMLNamespace = rb_define_module( "SFML" );
|
||||||
rb_define_const(globalSFMLNamespace, "SystemLoaded", Qtrue);
|
rb_define_const(globalSFMLNamespace, "SystemLoaded", Qtrue);
|
||||||
|
rb_define_const(globalSFMLNamespace, "Version", rb_str_new2(LIB_VERSION));
|
||||||
|
rb_define_const(globalSFMLNamespace, "BindingVersion", rb_str_new2(BINDING_VERSION));
|
||||||
Init_Clock();
|
Init_Clock();
|
||||||
Init_Vector2();
|
Init_Vector2();
|
||||||
Init_Vector3();
|
Init_Vector3();
|
||||||
|
@ -34,6 +34,9 @@ extern "C" void Init_system( void );
|
|||||||
|
|
||||||
typedef VALUE ( *RubyFunctionPtr )( ... );
|
typedef VALUE ( *RubyFunctionPtr )( ... );
|
||||||
|
|
||||||
|
#define BINDING_VERSION "development"
|
||||||
|
#define LIB_VERSION "2.0"
|
||||||
|
|
||||||
#define MAX( x, y ) ( ( x ) < ( y ) ? ( y ) : ( x ) )
|
#define MAX( x, y ) ( ( x ) < ( y ) ? ( y ) : ( x ) )
|
||||||
#define MIN( x, y ) ( ( x ) > ( y ) ? ( x ) : ( y ) )
|
#define MIN( x, y ) ( ( x ) > ( y ) ? ( x ) : ( y ) )
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user