Signal error when callbacks are not supported in ffi
authorNelson Ferreira <nelson.ferreira@ieee.org>
Wed, 10 Jun 2015 14:29:49 +0000 (10:29 -0400)
committerNelson Ferreira <nelson.ferreira@ieee.org>
Wed, 10 Jun 2015 14:29:49 +0000 (10:29 -0400)
src/effi.c

index 930d380..6baf2e6 100644 (file)
@@ -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;
 }