diff options
Diffstat (limited to 'manual')
-rw-r--r-- | manual/manual.of | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/manual/manual.of b/manual/manual.of index f0a2ed94..1ac537f7 100644 --- a/manual/manual.of +++ b/manual/manual.of | |||
@@ -3974,7 +3974,7 @@ Lua will call @id{falloc} before raising the error. | |||
3974 | 3974 | ||
3975 | 3975 | ||
3976 | @APIEntry{const char *lua_pushfstring (lua_State *L, const char *fmt, ...);| | 3976 | @APIEntry{const char *lua_pushfstring (lua_State *L, const char *fmt, ...);| |
3977 | @apii{0,1,v} | 3977 | @apii{0,1,m} |
3978 | 3978 | ||
3979 | Pushes onto the stack a formatted string | 3979 | Pushes onto the stack a formatted string |
3980 | and returns a pointer to this string @see{constchar}. | 3980 | and returns a pointer to this string @see{constchar}. |
@@ -3997,9 +3997,6 @@ The conversion specifiers can only be | |||
3997 | @Char{%c} (inserts an @T{int} as a one-byte character), and | 3997 | @Char{%c} (inserts an @T{int} as a one-byte character), and |
3998 | @Char{%U} (inserts an @T{unsigned long} as a @x{UTF-8} byte sequence). | 3998 | @Char{%U} (inserts an @T{unsigned long} as a @x{UTF-8} byte sequence). |
3999 | 3999 | ||
4000 | This function may raise errors due to memory overflow | ||
4001 | or an invalid conversion specifier. | ||
4002 | |||
4003 | } | 4000 | } |
4004 | 4001 | ||
4005 | @APIEntry{void lua_pushglobaltable (lua_State *L);| | 4002 | @APIEntry{void lua_pushglobaltable (lua_State *L);| |
@@ -4104,10 +4101,14 @@ onto the stack. | |||
4104 | const char *lua_pushvfstring (lua_State *L, | 4101 | const char *lua_pushvfstring (lua_State *L, |
4105 | const char *fmt, | 4102 | const char *fmt, |
4106 | va_list argp);| | 4103 | va_list argp);| |
4107 | @apii{0,1,v} | 4104 | @apii{0,1,-} |
4108 | 4105 | ||
4109 | Equivalent to @Lid{lua_pushfstring}, except that it receives a @id{va_list} | 4106 | Equivalent to @Lid{lua_pushfstring}, |
4110 | instead of a variable number of arguments. | 4107 | except that it receives a @id{va_list} |
4108 | instead of a variable number of arguments, | ||
4109 | and it does not raise errors. | ||
4110 | Instead, in case of errors it pushes the error message | ||
4111 | and returns @id{NULL}. | ||
4111 | 4112 | ||
4112 | } | 4113 | } |
4113 | 4114 | ||
@@ -5636,6 +5637,7 @@ It is defined as the following macro: | |||
5636 | } | 5637 | } |
5637 | It @N{returns 0} (@Lid{LUA_OK}) if there are no errors, | 5638 | It @N{returns 0} (@Lid{LUA_OK}) if there are no errors, |
5638 | or 1 in case of errors. | 5639 | or 1 in case of errors. |
5640 | (Except for out-of-memory errors, which are raised.) | ||
5639 | 5641 | ||
5640 | } | 5642 | } |
5641 | 5643 | ||
@@ -5800,7 +5802,7 @@ The first line in the file is ignored if it starts with a @T{#}. | |||
5800 | 5802 | ||
5801 | The string @id{mode} works as in the function @Lid{lua_load}. | 5803 | The string @id{mode} works as in the function @Lid{lua_load}. |
5802 | 5804 | ||
5803 | This function returns the same results as @Lid{lua_load} | 5805 | This function returns the same results as @Lid{lua_load}, |
5804 | or @Lid{LUA_ERRFILE} for file-related errors. | 5806 | or @Lid{LUA_ERRFILE} for file-related errors. |
5805 | 5807 | ||
5806 | As @Lid{lua_load}, this function only loads the chunk; | 5808 | As @Lid{lua_load}, this function only loads the chunk; |
@@ -9260,7 +9262,7 @@ the script is compiled as a variadic function. | |||
9260 | In interactive mode, | 9262 | In interactive mode, |
9261 | Lua repeatedly prompts and waits for a line. | 9263 | Lua repeatedly prompts and waits for a line. |
9262 | After reading a line, | 9264 | After reading a line, |
9263 | Lua first try to interpret the line as an expression. | 9265 | Lua first tries to interpret the line as an expression. |
9264 | If it succeeds, it prints its value. | 9266 | If it succeeds, it prints its value. |
9265 | Otherwise, it interprets the line as a chunk. | 9267 | Otherwise, it interprets the line as a chunk. |
9266 | If you write an incomplete chunk, | 9268 | If you write an incomplete chunk, |
@@ -9424,6 +9426,11 @@ instead, there is a new option @Lid{LUA_GCPARAM} to that end. | |||
9424 | Moreover, there were some changes in the parameters themselves. | 9426 | Moreover, there were some changes in the parameters themselves. |
9425 | } | 9427 | } |
9426 | 9428 | ||
9429 | @item{ | ||
9430 | The function @Lid{lua_pushvfstring} now reports errors, | ||
9431 | instead of raising them. | ||
9432 | } | ||
9433 | |||
9427 | } | 9434 | } |
9428 | 9435 | ||
9429 | } | 9436 | } |