aboutsummaryrefslogtreecommitdiff
path: root/luaconf.h
diff options
context:
space:
mode:
authorRoberto I <roberto@inf.puc-rio.br>2025-09-05 15:36:47 -0300
committerRoberto I <roberto@inf.puc-rio.br>2025-09-05 15:36:47 -0300
commit9ea06e61f20ae34974226074fc6123dbb54a07c2 (patch)
treefe3333a7b89490be71b26047a5bc2d836113bf72 /luaconf.h
parentffbcadfb4197213d55222bca3ecc52606cd980f4 (diff)
downloadlua-9ea06e61f20ae34974226074fc6123dbb54a07c2.tar.gz
lua-9ea06e61f20ae34974226074fc6123dbb54a07c2.tar.bz2
lua-9ea06e61f20ae34974226074fc6123dbb54a07c2.zip
Details
- LUAMOD_API defined as 'extern "C"' in C++. - "ANSI C" is in fact "ISO C" (comments) - Removed option -std from makefile in testes/libs. (Easier to change to C++ for tests).
Diffstat (limited to 'luaconf.h')
-rw-r--r--luaconf.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/luaconf.h b/luaconf.h
index 1ac64328..96a77802 100644
--- a/luaconf.h
+++ b/luaconf.h
@@ -319,7 +319,13 @@
319** More often than not the libs go together with the core. 319** More often than not the libs go together with the core.
320*/ 320*/
321#define LUALIB_API LUA_API 321#define LUALIB_API LUA_API
322
323#if defined(__cplusplus)
324/* Lua uses the "C name" when calling open functions */
325#define LUAMOD_API extern "C"
326#else
322#define LUAMOD_API LUA_API 327#define LUAMOD_API LUA_API
328#endif
323 329
324/* }================================================================== */ 330/* }================================================================== */
325 331