From: Jay Freeman (saurik) Date: Wed, 4 Nov 2009 03:21:47 +0000 (+0000) Subject: Switched from _assert(false) to CYThrow() in FromFFI. X-Git-Tag: v0.9.432~194 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/b91ac3c49ca098ffb3db1a8f3c0b02d498c56add Switched from _assert(false) to CYThrow() in FromFFI. --- 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); } }