Re: Using exceptions with FFI

  • From: Simon Cooke <sjcfwd@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Fri, 17 Aug 2012 16:59:46 -0400

On Fri, Aug 17, 2012 at 3:29 PM, Mike Pall <mike-1208@xxxxxxxxxx> wrote:
>
> The do-it-yourself solution would be to add a try/catch wrapper on
> the C++ side, return some error code and then check for it on the
> Lua side and call error() on failure.

This sounds like the safest and simplest approach. Thanks for
explaining the issues in detail.

Simon

Other related posts: