commit | b80077b8f3e27a94c6afa895b41a9f8b52c42e61 | [log] [tgz] |
---|---|---|
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | Fri Jul 26 14:59:39 2019 -0300 |
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | Fri Jul 26 14:59:39 2019 -0300 |
tree | 8a7c21ee0acfed553ef1d92bdfd7b1f728f35a91 | |
parent | e70f275f32a5339a86be6f8b9d08c20cb874b205 [diff] |
Change in the handling of 'L->top' when calling metamethods Instead of updating 'L->top' in every place that may call a metamethod, the metamethod functions themselves (luaT_trybinTM and luaT_callorderTM) correct the top. (When calling metamethods from the C API, however, the callers must preserve 'L->top'.)