From bd2d10715165b89d30e46c5075aed725705dfe5b Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Fri, 15 Sep 2023 05:47:29 +0200 Subject: Windows: Call C++ destructors without compiling with /EHa. Thanks to Peter Cawley. #593 --- doc/extensions.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/extensions.html b/doc/extensions.html index eb591d1e..a4f20841 100644 --- a/doc/extensions.html +++ b/doc/extensions.html @@ -426,9 +426,7 @@ 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.
    -For MSVC for Windows 64 bit this requires compilation of your C++ code -with /EHa.
  • +The corresponding Lua error message can be retrieved from the Lua stack.
  • Throwing Lua errors across C++ frames is safe. C++ destructors will be called.
  • -- cgit v1.2.3-55-g6feb