Made the classes that is non-copyable in the C++ library also non-copyable in rbSFML.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1738 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
cd04d29584
commit
30865b6ef9
10 changed files with 27 additions and 1 deletions
|
@ -26,6 +26,9 @@
|
|||
|
||||
VALUE globalContextClass;
|
||||
|
||||
/* External classes */
|
||||
extern VALUE globalNonCopyableModule;
|
||||
|
||||
/* Free a heap allocated object
|
||||
* Not accessible trough ruby directly!
|
||||
*/
|
||||
|
@ -109,6 +112,7 @@ void Init_Context( void )
|
|||
* the attached resources.
|
||||
*/
|
||||
globalContextClass = rb_define_class_under( sfml, "Context", rb_cObject );
|
||||
rb_include_module( globalContextClass, globalNonCopyableModule );
|
||||
|
||||
// Class methods
|
||||
rb_define_singleton_method( globalContextClass, "new", Context_New, 0 );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue