diff options
| author | Roberto I <roberto@inf.puc-rio.br> | 2025-09-05 15:36:47 -0300 |
|---|---|---|
| committer | Roberto I <roberto@inf.puc-rio.br> | 2025-09-05 15:36:47 -0300 |
| commit | 9ea06e61f20ae34974226074fc6123dbb54a07c2 (patch) | |
| tree | fe3333a7b89490be71b26047a5bc2d836113bf72 /luaconf.h | |
| parent | ffbcadfb4197213d55222bca3ecc52606cd980f4 (diff) | |
| download | lua-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.h | 6 |
1 files changed, 6 insertions, 0 deletions
| @@ -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 | ||
