diff options
Diffstat (limited to 'manual')
-rw-r--r-- | manual/manual.of | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/manual/manual.of b/manual/manual.of index 8607e57d..ef1bdfd2 100644 --- a/manual/manual.of +++ b/manual/manual.of | |||
@@ -3266,6 +3266,13 @@ As it produces parts of the chunk, | |||
3266 | with the given @id{data} | 3266 | with the given @id{data} |
3267 | to write them. | 3267 | to write them. |
3268 | 3268 | ||
3269 | The function @Lid{lua_dump} fully preserves the Lua stack | ||
3270 | through the calls to the writer function, | ||
3271 | except that it may push some values for internal use | ||
3272 | before the first call, | ||
3273 | and it restores the stack size to its original size | ||
3274 | after the last call. | ||
3275 | |||
3269 | If @id{strip} is true, | 3276 | If @id{strip} is true, |
3270 | the binary representation may not include all debug information | 3277 | the binary representation may not include all debug information |
3271 | about the function, | 3278 | about the function, |
@@ -3275,8 +3282,6 @@ The value returned is the error code returned by the last | |||
3275 | call to the writer; | 3282 | call to the writer; |
3276 | @N{0 means} no errors. | 3283 | @N{0 means} no errors. |
3277 | 3284 | ||
3278 | This function does not pop the Lua function from the stack. | ||
3279 | |||
3280 | } | 3285 | } |
3281 | 3286 | ||
3282 | @APIEntry{int lua_error (lua_State *L);| | 3287 | @APIEntry{int lua_error (lua_State *L);| |
@@ -4688,6 +4693,10 @@ passing along the buffer to be written (@id{p}), | |||
4688 | its size (@id{sz}), | 4693 | its size (@id{sz}), |
4689 | and the @id{ud} parameter supplied to @Lid{lua_dump}. | 4694 | and the @id{ud} parameter supplied to @Lid{lua_dump}. |
4690 | 4695 | ||
4696 | After @Lid{lua_dump} writes its last piece, | ||
4697 | it will signal that by calling the writer function one more time, | ||
4698 | with a @id{NULL} buffer (and size 0). | ||
4699 | |||
4691 | The writer returns an error code: | 4700 | The writer returns an error code: |
4692 | @N{0 means} no errors; | 4701 | @N{0 means} no errors; |
4693 | any other value means an error and stops @Lid{lua_dump} from | 4702 | any other value means an error and stops @Lid{lua_dump} from |
@@ -9260,6 +9269,14 @@ it is equivalent to @Lid{lua_closethread} with | |||
9260 | } | 9269 | } |
9261 | 9270 | ||
9262 | @item{ | 9271 | @item{ |
9272 | The function @Lid{lua_dump} changed the way it keeps the stack | ||
9273 | through the calls to the writer function. | ||
9274 | (That was not specified in previous versions.) | ||
9275 | Also, it calls the writer function one extra time, | ||
9276 | to signal the end of the dump. | ||
9277 | } | ||
9278 | |||
9279 | @item{ | ||
9263 | There were several changes in the parameters | 9280 | There were several changes in the parameters |
9264 | for the options @Lid{LUA_GCINC} and @Lid{LUA_GCGEN} | 9281 | for the options @Lid{LUA_GCINC} and @Lid{LUA_GCGEN} |
9265 | of the function @Lid{lua_gc}. | 9282 | of the function @Lid{lua_gc}. |