Ok so i found a way to turn off exceptions for C++ in clang which appears to turn any throw statements in functions I call into abort
which is basically what I wanted.
https://clang.llvm.org/docs/ClangCommandLineReference.html#cmdoption-clang-fcxx-exceptions
However will leave the question up in case anyone has some clever ideas.