|
Viacheslav Usov wrote:
+#ifdef __cplusplus +#define LUA_API extern "C" +#else #define LUA_API extern +#endif
It was a typo in my first mail. I intended it to be as yours, but a #define LUA_API extern "C++" and compiling all LUA-src with '-TP -EHsc' works too! (I'm on MSVC-2019 and clang-cl v9). I'm just experimenting with this since some .lua-code in an Italian spagetti-program called Ntop-NG crashes inside ldo.c An unknown reason causes 'CallInfo *ci' to become NULL during a 'luaD_precall()'. Hence the reason I'd like to use 'throw()' instead.
It is similar to your approach. In the past, I used some other ways, but eventually I settled on this. Repeat, statically linked Lua.
Yes. Static. -- --gv