Add __close metamethod

This commit is contained in:
Bruno Silvestre
2019-10-15 13:25:12 -03:00
parent 7898bd2043
commit 87e51d99ea
3 changed files with 8 additions and 1 deletions

View File

@ -846,6 +846,7 @@ static int meth_set_verify_ext(lua_State *L)
* Context metamethods.
*/
static luaL_Reg meta[] = {
{"__close", meth_destroy},
{"__gc", meth_destroy},
{"__tostring", meth_tostring},
{NULL, NULL}