Skip to content

Instantly share code, notes, and snippets.

@jasonroelofs
Created December 4, 2009 22:09
Show Gist options
  • Save jasonroelofs/249400 to your computer and use it in GitHub Desktop.
Save jasonroelofs/249400 to your computer and use it in GitHub Desktop.
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