Skip to content

Instantly share code, notes, and snippets.

@mmower
Created September 23, 2008 22:17
Show Gist options
  • Select an option

  • Save mmower/12430 to your computer and use it in GitHub Desktop.

Select an option

Save mmower/12430 to your computer and use it in GitHub Desktop.
- (float)generateWithT:(float)_t_ {
if( !evalFunction ) {
evalFunction = NSSelectorFromString( [NSString stringWithFormat:@"generate%@WithT:", function] );
NSAssert1( evalFunction, @"Unable to obtain SEL for filter function! (%@)", function );
}
// objc_msgSend_fpret( self, evalFunction );
// return 0.0;
float (*fn)(id, SEL, ...) = (float (*)(id, SEL, ...)) objc_msgSend_fpret;
return (*fn)( self, evalFunction, _t_ );
//
// return objc_msgSend_fpret( self, evalFunction, _t_ );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment