aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMike Pall <mike>2023-09-15 05:47:29 +0200
committerMike Pall <mike>2023-09-15 05:47:29 +0200
commitbd2d10715165b89d30e46c5075aed725705dfe5b (patch)
tree54ce5d74ff289e21ad93b4a14e53a78491d06949 /doc
parent7a1c139569874f371f567d060738a3f5704930a1 (diff)
downloadluajit-bd2d10715165b89d30e46c5075aed725705dfe5b.tar.gz
luajit-bd2d10715165b89d30e46c5075aed725705dfe5b.tar.bz2
luajit-bd2d10715165b89d30e46c5075aed725705dfe5b.zip
Windows: Call C++ destructors without compiling with /EHa.
Thanks to Peter Cawley. #593
Diffstat (limited to 'doc')
-rw-r--r--doc/extensions.html4
1 files changed, 1 insertions, 3 deletions
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:
426on the C&nbsp;stack. The contents of the C++&nbsp;exception object 426on the C&nbsp;stack. The contents of the C++&nbsp;exception object
427pass through unmodified.</li> 427pass through unmodified.</li>
428<li>Lua errors can be caught on the C++ side with <tt>catch(...)</tt>. 428<li>Lua errors can be caught on the C++ side with <tt>catch(...)</tt>.
429The corresponding Lua error message can be retrieved from the Lua stack.<br> 429The corresponding Lua error message can be retrieved from the Lua stack.</li>
430For MSVC for Windows 64 bit this requires compilation of your C++ code
431with <tt>/EHa</tt>.</li>
432<li>Throwing Lua errors across C++ frames is safe. C++ destructors 430<li>Throwing Lua errors across C++ frames is safe. C++ destructors
433will be called.</li> 431will be called.</li>
434</ul> 432</ul>