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 /testes/libs/lib11.c | |
| 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 'testes/libs/lib11.c')
| -rw-r--r-- | testes/libs/lib11.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testes/libs/lib11.c b/testes/libs/lib11.c index 377d0c48..6a85f4d6 100644 --- a/testes/libs/lib11.c +++ b/testes/libs/lib11.c | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | #include "lua.h" | 1 | #include "lua.h" |
| 2 | 2 | ||
| 3 | /* function from lib1.c */ | 3 | /* function from lib1.c */ |
| 4 | int lib1_export (lua_State *L); | 4 | LUAMOD_API int lib1_export (lua_State *L); |
| 5 | 5 | ||
| 6 | LUAMOD_API int luaopen_lib11 (lua_State *L) { | 6 | LUAMOD_API int luaopen_lib11 (lua_State *L) { |
| 7 | return lib1_export(L); | 7 | return lib1_export(L); |
