From 1811c4b0f18d4a6e4ebc0a305a564e9339a36d05 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Fri, 24 Sep 2021 12:10:44 +0200 Subject: [PATCH] Windows/x64: Document MSVC flags for C++ exception interoperability. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Suggested by Julien Cugnière. --- doc/extensions.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/extensions.html b/doc/extensions.html index 306943b7..e3ab081e 100644 --- a/doc/extensions.html +++ b/doc/extensions.html @@ -353,7 +353,9 @@ the toolchain used to compile LuaJIT: on the C stack. The contents of the C++ exception object pass through unmodified.
  • Lua errors can be caught on the C++ side with catch(...). -The corresponding Lua error message can be retrieved from the Lua stack.
  • +The corresponding Lua error message can be retrieved from the Lua stack.
    +For MSVC for Windows 64 bit this requires compilation of your C++ code +with /EHa.
  • Throwing Lua errors across C++ frames is safe. C++ destructors will be called.