diff options
author | Wayne Meissner <wmeissner@gmail.com> | 2009-08-08 01:11:01 +1000 |
---|---|---|
committer | Wayne Meissner <wmeissner@gmail.com> | 2009-08-08 01:11:01 +1000 |
commit | 86be62a82d1fb93c3ad338f6a9182b02347e11d4 (patch) | |
tree | cc48ed52b55b733ac6e7700596a810a30f5232b5 /ext/ffi_c/Call.c | |
parent | 0c1df723a492c2d6661d8416e73f56723e5cbf6e (diff) | |
download | ffi-86be62a82d1fb93c3ad338f6a9182b02347e11d4.tar.gz |
Merge Callback into Function
Diffstat (limited to 'ext/ffi_c/Call.c')
-rw-r--r-- | ext/ffi_c/Call.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/ffi_c/Call.c b/ext/ffi_c/Call.c index 75892bd..b0c3135 100644 --- a/ext/ffi_c/Call.c +++ b/ext/ffi_c/Call.c @@ -47,7 +47,6 @@ #include "Pointer.h" #include "Struct.h" #include "Function.h" -#include "Callback.h" #include "Type.h" #include "LastError.h" #include "Call.h" @@ -416,7 +415,8 @@ callback_param(VALUE proc, VALUE cbInfo) return ptr->address; } - callback = rbffi_NativeCallback_ForProc(proc, cbInfo); + //callback = rbffi_NativeCallback_ForProc(proc, cbInfo); + callback = rbffi_Function_ForProc(cbInfo, proc); return ((AbstractMemory *) DATA_PTR(callback))->address; } |