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).
This commit is contained in:
@@ -319,7 +319,13 @@
|
||||
** More often than not the libs go together with the core.
|
||||
*/
|
||||
#define LUALIB_API LUA_API
|
||||
|
||||
#if defined(__cplusplus)
|
||||
/* Lua uses the "C name" when calling open functions */
|
||||
#define LUAMOD_API extern "C"
|
||||
#else
|
||||
#define LUAMOD_API LUA_API
|
||||
#endif
|
||||
|
||||
/* }================================================================== */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user