aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
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 /lapi.c
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 'lapi.c')
-rw-r--r--lapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lapi.c b/lapi.c
index 55e371dc..27fa5247 100644
--- a/lapi.c
+++ b/lapi.c
@@ -484,7 +484,7 @@ LUA_API lua_State *lua_tothread (lua_State *L, int idx) {
484 484
485/* 485/*
486** Returns a pointer to the internal representation of an object. 486** Returns a pointer to the internal representation of an object.
487** Note that ANSI C does not allow the conversion of a pointer to 487** Note that ISO C does not allow the conversion of a pointer to
488** function to a 'void*', so the conversion here goes through 488** function to a 'void*', so the conversion here goes through
489** a 'size_t'. (As the returned pointer is only informative, this 489** a 'size_t'. (As the returned pointer is only informative, this
490** conversion should not be a problem.) 490** conversion should not be a problem.)