summaryrefslogtreecommitdiff
path: root/MLKCompiledClosure.h
diff options
context:
space:
mode:
Diffstat (limited to 'MLKCompiledClosure.h')
-rw-r--r--MLKCompiledClosure.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/MLKCompiledClosure.h b/MLKCompiledClosure.h
index 53267b2..589c0de 100644
--- a/MLKCompiledClosure.h
+++ b/MLKCompiledClosure.h
@@ -32,13 +32,15 @@
BOOL _ownPointer; // do we own the _code pointer cell?
}
+// Why intptr_t? Because it makes it easier to call this method from
+// LLVM-generated code without proper type handling.
-(id) initWithCode:(void *)code
data:(id *)data
- length:(int)dataLength;
+ length:(intptr_t)dataLength;
+(id) closureWithCode:(void *)code
data:(id *)data
- length:(int)dataLength;;
+ length:(intptr_t)dataLength;;
-(NSArray *) applyToArray:(NSArray *)arguments;