summaryrefslogtreecommitdiff
path: root/MLKCompiledClosure.m
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <matthias@benkard.de>2008-08-15 23:22:41 +0200
committerMatthias Andreas Benkard <matthias@benkard.de>2008-08-16 15:39:42 +0200
commit33d61cbd7c4017d4f7832b331721cf00000a8c0b (patch)
treea90bf597b8bdd9e5b60adc3191dab7142c34c89d /MLKCompiledClosure.m
parentae6e74608bfb068a431ba397f4b69cabc31d06e2 (diff)
MLKCompiledClosure: Add debugging messages.
Diffstat (limited to 'MLKCompiledClosure.m')
-rw-r--r--MLKCompiledClosure.m9
1 files changed, 8 insertions, 1 deletions
diff --git a/MLKCompiledClosure.m b/MLKCompiledClosure.m
index c2ab290..6737acc 100644
--- a/MLKCompiledClosure.m
+++ b/MLKCompiledClosure.m
@@ -86,9 +86,16 @@
format:@"FFI type is invalid (this is probably a bug)."];
}
+ NSLog (@"Calling %p (argc = %d)", _code, argc);
+ _code(0, MLKEndOfArgumentsMarker);
+ for (i = 0; i < argc; i++)
+ {
+ NSLog (@"Argument %d: %p", i, *((void**)argv[i]));
+ }
+
ffi_call (&cif, FFI_FN (_code), &return_value, (void**)argv);
- // FIXME
+ // FIXME: multiple values
return [NSArray arrayWithObject:nullify(return_value)];
}