Created
September 23, 2008 22:17
-
-
Save mmower/12430 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
| - (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