diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-05-28 15:46:49 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-05-28 15:46:49 -0300 |
| commit | b293ae0577bebaca7169cb4f041b800641d5e2c4 (patch) | |
| tree | bda609d72277433bda3537ac50ed8fecf9a73898 /luaconf.h | |
| parent | d9f40e3f6fb61650240c47d548bee69b24b07859 (diff) | |
| download | lua-b293ae0577bebaca7169cb4f041b800641d5e2c4.tar.gz lua-b293ae0577bebaca7169cb4f041b800641d5e2c4.tar.bz2 lua-b293ae0577bebaca7169cb4f041b800641d5e2c4.zip | |
Details
- new error message for "attempt to assign to const variable"
- note in the manual about compatibility options
- comments
- small changes in 'read_line' and 'pushstr'
Diffstat (limited to 'luaconf.h')
| -rw-r--r-- | luaconf.h | 14 |
1 files changed, 9 insertions, 5 deletions
| @@ -344,8 +344,8 @@ | |||
| 344 | /* | 344 | /* |
| 345 | @@ LUA_COMPAT_MATHLIB controls the presence of several deprecated | 345 | @@ LUA_COMPAT_MATHLIB controls the presence of several deprecated |
| 346 | ** functions in the mathematical library. | 346 | ** functions in the mathematical library. |
| 347 | ** (These functions were already officially removed in 5.3, but | 347 | ** (These functions were already officially removed in 5.3; |
| 348 | ** nevertheless they are available by default there.) | 348 | ** nevertheless they are still available here.) |
| 349 | */ | 349 | */ |
| 350 | #define LUA_COMPAT_MATHLIB | 350 | #define LUA_COMPAT_MATHLIB |
| 351 | 351 | ||
| @@ -353,23 +353,25 @@ | |||
| 353 | @@ LUA_COMPAT_APIINTCASTS controls the presence of macros for | 353 | @@ LUA_COMPAT_APIINTCASTS controls the presence of macros for |
| 354 | ** manipulating other integer types (lua_pushunsigned, lua_tounsigned, | 354 | ** manipulating other integer types (lua_pushunsigned, lua_tounsigned, |
| 355 | ** luaL_checkint, luaL_checklong, etc.) | 355 | ** luaL_checkint, luaL_checklong, etc.) |
| 356 | ** (These macros were also officially removed in 5.3, but they are still | ||
| 357 | ** available here.) | ||
| 356 | */ | 358 | */ |
| 357 | #define LUA_COMPAT_APIINTCASTS | 359 | #define LUA_COMPAT_APIINTCASTS |
| 358 | 360 | ||
| 361 | |||
| 359 | /* | 362 | /* |
| 360 | @@ LUA_COMPAT_LT_LE controls the emulation of the '__le' metamethod | 363 | @@ LUA_COMPAT_LT_LE controls the emulation of the '__le' metamethod |
| 361 | ** using '__lt'. | 364 | ** using '__lt'. |
| 362 | */ | 365 | */ |
| 363 | #define LUA_COMPAT_LT_LE | 366 | #define LUA_COMPAT_LT_LE |
| 364 | 367 | ||
| 365 | #endif /* } */ | ||
| 366 | |||
| 367 | |||
| 368 | 368 | ||
| 369 | /* | 369 | /* |
| 370 | @@ The following macros supply trivial compatibility for some | 370 | @@ The following macros supply trivial compatibility for some |
| 371 | ** changes in the API. The macros themselves document how to | 371 | ** changes in the API. The macros themselves document how to |
| 372 | ** change your code to avoid using them. | 372 | ** change your code to avoid using them. |
| 373 | ** (Once more, these macros were officially removed in 5.3, but they are | ||
| 374 | ** still available here.) | ||
| 373 | */ | 375 | */ |
| 374 | #define lua_strlen(L,i) lua_rawlen(L, (i)) | 376 | #define lua_strlen(L,i) lua_rawlen(L, (i)) |
| 375 | 377 | ||
| @@ -378,6 +380,8 @@ | |||
| 378 | #define lua_equal(L,idx1,idx2) lua_compare(L,(idx1),(idx2),LUA_OPEQ) | 380 | #define lua_equal(L,idx1,idx2) lua_compare(L,(idx1),(idx2),LUA_OPEQ) |
| 379 | #define lua_lessthan(L,idx1,idx2) lua_compare(L,(idx1),(idx2),LUA_OPLT) | 381 | #define lua_lessthan(L,idx1,idx2) lua_compare(L,(idx1),(idx2),LUA_OPLT) |
| 380 | 382 | ||
| 383 | #endif /* } */ | ||
| 384 | |||
| 381 | /* }================================================================== */ | 385 | /* }================================================================== */ |
| 382 | 386 | ||
| 383 | 387 | ||
