projects
/
sxemacs
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a327fad
)
Signal error when callbacks are not supported in ffi
author
Nelson Ferreira
<nelson.ferreira@ieee.org>
Wed, 10 Jun 2015 14:29:49 +0000
(10:29 -0400)
committer
Nelson Ferreira
<nelson.ferreira@ieee.org>
Wed, 10 Jun 2015 14:29:49 +0000
(10:29 -0400)
src/effi.c
patch
|
blob
|
history
diff --git
a/src/effi.c
b/src/effi.c
index
930d380
..
6baf2e6
100644
(file)
--- a/
src/effi.c
+++ b/
src/effi.c
@@
-1817,6
+1817,13
@@
Create dynamic callback and return pointer to it.
ptr = Fmake_ffi_object(Qpointer, Qnil);
#ifdef __i386__
XEFFIO(ptr)->fop.ptr = ffi_make_callback_x86(data, XINT(cctype));
+#else
+#ifdef SXEMACS
+ error("FFI Callbacks not supported on this configuration");
+#else
+ signal_ferror(Qinternal_error,
+ "FFI Callbacks not supported on this configuration");
+#endif /* SXEMACS */
#endif /* __i386__ */
return ptr;
}