diff options
Diffstat (limited to 'manual')
-rw-r--r-- | manual/manual.of | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/manual/manual.of b/manual/manual.of index c69970d2..2a837b5e 100644 --- a/manual/manual.of +++ b/manual/manual.of | |||
@@ -5915,6 +5915,9 @@ previously pushed on the stack | |||
5915 | on top of the library table. | 5915 | on top of the library table. |
5916 | These values are popped from the stack after the registration. | 5916 | These values are popped from the stack after the registration. |
5917 | 5917 | ||
5918 | A function with a @id{NULL} value represents a placeholder, | ||
5919 | which is filled with @false. | ||
5920 | |||
5918 | } | 5921 | } |
5919 | 5922 | ||
5920 | @APIEntry{void luaL_setmetatable (lua_State *L, const char *tname);| | 5923 | @APIEntry{void luaL_setmetatable (lua_State *L, const char *tname);| |
@@ -6397,7 +6400,7 @@ This means that any error @N{inside @T{f}} is not propagated; | |||
6397 | instead, @id{pcall} catches the error | 6400 | instead, @id{pcall} catches the error |
6398 | and returns a status code. | 6401 | and returns a status code. |
6399 | Its first result is the status code (a boolean), | 6402 | Its first result is the status code (a boolean), |
6400 | which is true if the call succeeds without errors. | 6403 | which is @true if the call succeeds without errors. |
6401 | In such case, @id{pcall} also returns all results from the call, | 6404 | In such case, @id{pcall} also returns all results from the call, |
6402 | after this first result. | 6405 | after this first result. |
6403 | In case of any error, @id{pcall} returns @false plus the error object. | 6406 | In case of any error, @id{pcall} returns @false plus the error object. |
@@ -6603,7 +6606,7 @@ an object with type @T{"thread"}. | |||
6603 | 6606 | ||
6604 | @LibEntry{coroutine.isyieldable ([co])| | 6607 | @LibEntry{coroutine.isyieldable ([co])| |
6605 | 6608 | ||
6606 | Returns true when the coroutine @id{co} can yield. | 6609 | Returns @true when the coroutine @id{co} can yield. |
6607 | The default for @id{co} is the running coroutine. | 6610 | The default for @id{co} is the running coroutine. |
6608 | 6611 | ||
6609 | A coroutine is yieldable if it is not the main thread and | 6612 | A coroutine is yieldable if it is not the main thread and |
@@ -6635,7 +6638,7 @@ If there is any error, | |||
6635 | @LibEntry{coroutine.running ()| | 6638 | @LibEntry{coroutine.running ()| |
6636 | 6639 | ||
6637 | Returns the running coroutine plus a boolean, | 6640 | Returns the running coroutine plus a boolean, |
6638 | true when the running coroutine is the main one. | 6641 | @true when the running coroutine is the main one. |
6639 | 6642 | ||
6640 | } | 6643 | } |
6641 | 6644 | ||
@@ -6730,7 +6733,7 @@ If the loader returns any non-nil value, | |||
6730 | @id{require} assigns the returned value to @T{package.loaded[modname]}. | 6733 | @id{require} assigns the returned value to @T{package.loaded[modname]}. |
6731 | If the loader does not return a non-nil value and | 6734 | If the loader does not return a non-nil value and |
6732 | has not assigned any value to @T{package.loaded[modname]}, | 6735 | has not assigned any value to @T{package.loaded[modname]}, |
6733 | then @id{require} assigns @Rw{true} to this entry. | 6736 | then @id{require} assigns @true to this entry. |
6734 | In any case, @id{require} returns the | 6737 | In any case, @id{require} returns the |
6735 | final value of @T{package.loaded[modname]}. | 6738 | final value of @T{package.loaded[modname]}. |
6736 | Besides that value, @id{require} also returns as a second result | 6739 | Besides that value, @id{require} also returns as a second result |
@@ -7051,7 +7054,7 @@ otherwise, it returns @fail. | |||
7051 | A third, optional numeric argument @id{init} specifies | 7054 | A third, optional numeric argument @id{init} specifies |
7052 | where to start the search; | 7055 | where to start the search; |
7053 | its default value @N{is 1} and can be negative. | 7056 | its default value @N{is 1} and can be negative. |
7054 | A value of @true as a fourth, optional argument @id{plain} | 7057 | A @true as a fourth, optional argument @id{plain} |
7055 | turns off the pattern matching facilities, | 7058 | turns off the pattern matching facilities, |
7056 | so the function does a plain @Q{find substring} operation, | 7059 | so the function does a plain @Q{find substring} operation, |
7057 | with no characters in @id{pattern} being considered magic. | 7060 | with no characters in @id{pattern} being considered magic. |
@@ -8077,7 +8080,7 @@ or @fail if @id{x} is not a number. | |||
8077 | @LibEntry{math.ult (m, n)| | 8080 | @LibEntry{math.ult (m, n)| |
8078 | 8081 | ||
8079 | Returns a boolean, | 8082 | Returns a boolean, |
8080 | true if and only if integer @id{m} is below integer @id{n} when | 8083 | @true if and only if integer @id{m} is below integer @id{n} when |
8081 | they are compared as @x{unsigned integers}. | 8084 | they are compared as @x{unsigned integers}. |
8082 | 8085 | ||
8083 | } | 8086 | } |
@@ -8490,13 +8493,13 @@ When called without a @id{command}, | |||
8490 | @LibEntry{os.exit ([code [, close]])| | 8493 | @LibEntry{os.exit ([code [, close]])| |
8491 | 8494 | ||
8492 | Calls the @ANSI{exit} to terminate the host program. | 8495 | Calls the @ANSI{exit} to terminate the host program. |
8493 | If @id{code} is @Rw{true}, | 8496 | If @id{code} is @true, |
8494 | the returned status is @idx{EXIT_SUCCESS}; | 8497 | the returned status is @idx{EXIT_SUCCESS}; |
8495 | if @id{code} is @Rw{false}, | 8498 | if @id{code} is @false, |
8496 | the returned status is @idx{EXIT_FAILURE}; | 8499 | the returned status is @idx{EXIT_FAILURE}; |
8497 | if @id{code} is a number, | 8500 | if @id{code} is a number, |
8498 | the returned status is this number. | 8501 | the returned status is this number. |
8499 | The default value for @id{code} is @Rw{true}. | 8502 | The default value for @id{code} is @true. |
8500 | 8503 | ||
8501 | If the optional second argument @id{close} is true, | 8504 | If the optional second argument @id{close} is true, |
8502 | closes the Lua state before exiting. | 8505 | closes the Lua state before exiting. |