From b91ac3c49ca098ffb3db1a8f3c0b02d498c56add Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Wed, 4 Nov 2009 03:21:47 +0000 Subject: [PATCH] Switched from _assert(false) to CYThrow() in FromFFI. --- Library.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Library.cpp b/Library.cpp index 0a8508e..2289e37 100644 --- a/Library.cpp +++ b/Library.cpp @@ -816,8 +816,7 @@ JSValueRef CYFromFFI(JSContextRef context, sig::Type *type, ffi_type *ffi, void if (JSValueRef value = (*hooks_->FromFFI)(context, type, ffi, data, initialize, owner)) return value; - fprintf(stderr, "CYFromFFI(%c)\n", type->primitive); - _assert(false); + CYThrow("failed conversion from FFI format: '%c'\n", type->primitive); } } -- 2.47.2