diff options
author | Josh Haberman <jhaberman@gmail.com> | 2016-12-07 00:52:25 -0800 |
---|---|---|
committer | Josh Haberman <jhaberman@gmail.com> | 2016-12-07 00:52:25 -0800 |
commit | ba4e23f1702996336f580312dcdc67d55ed29ae7 (patch) | |
tree | f812e99d4f43bfc6654123f4579c97e866c58518 /upb/bindings/lua/def.c | |
parent | 949aeee3f19f893a1581627efbd79ce24141ea6c (diff) |
Added a few missing __gc metamethods.
Diffstat (limited to 'upb/bindings/lua/def.c')
-rw-r--r-- | upb/bindings/lua/def.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/upb/bindings/lua/def.c b/upb/bindings/lua/def.c index c2df140..638abb6 100644 --- a/upb/bindings/lua/def.c +++ b/upb/bindings/lua/def.c @@ -720,6 +720,7 @@ static const struct luaL_Reg lupb_oneofdef_m[] = { }; static const struct luaL_Reg lupb_oneofdef_mm[] = { + {"__gc", lupb_refcounted_gc}, {"__len", lupb_oneofdef_len}, {NULL, NULL} }; |