Created
December 4, 2009 22:09
-
-
Save jasonroelofs/249400 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CL_Size CL_Size_minus(CL_Size self, CL_Size against) { | |
return self - against; | |
} | |
extern "C" | |
void Init_clanlib() | |
{ | |
Rice::Data_Type<CL_Size> cSize = Rice::define_class<CL_Size>("Size"); | |
cSize.define_method("-", &CL_Size_minus); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment