summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pall <mike>2021-09-24 12:10:44 +0200
committerMike Pall <mike>2021-09-24 12:10:44 +0200
commit1811c4b0f18d4a6e4ebc0a305a564e9339a36d05 (patch)
treee6a1e31c0dcb015212e6ce92be72dc970ec88321
parent204cee2c917f55f288c0b166742e56c134fe578c (diff)
downloadluajit2-1811c4b0f18d4a6e4ebc0a305a564e9339a36d05.tar.gz
Windows/x64: Document MSVC flags for C++ exception interoperability.
Suggested by Julien Cugnière.
-rw-r--r--doc/extensions.html4
1 files changed, 3 insertions, 1 deletions
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&nbsp;stack. The contents of the C++&nbsp;exception object
pass through unmodified.</li>
<li>Lua errors can be caught on the C++ side with <tt>catch(...)</tt>.
-The corresponding Lua error message can be retrieved from the Lua stack.</li>
+The corresponding Lua error message can be retrieved from the Lua stack.<br>
+For MSVC for Windows 64 bit this requires compilation of your C++ code
+with <tt>/EHa</tt>.</li>
<li>Throwing Lua errors across C++ frames is safe. C++ destructors
will be called.</li>
</ul>