diff options
author | Ronan Collobert <ronan@collobert.com> | 2014-10-22 03:57:01 +0400 |
---|---|---|
committer | Ronan Collobert <ronan@collobert.com> | 2014-10-22 03:57:01 +0400 |
commit | 14636ffe013c1ca0c3fb5b6d182bea86a89f8a78 (patch) | |
tree | b999690d142ffcd1ea123cf66e86b665b1e3b8cc /utils.c | |
parent | 98619f496e079c2880032eac3b19fe89cb0292d0 (diff) |
added (yet undocumented) support for custom metatypes in luaT/torch7 type system
Diffstat (limited to 'utils.c')
-rw-r--r-- | utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -194,6 +194,7 @@ static const struct luaL_Reg torch_utils__ [] = { {"newmetatable", luaT_lua_newmetatable}, {"setmetatable", luaT_lua_setmetatable}, {"getmetatable", luaT_lua_getmetatable}, + {"metatype", luaT_lua_metatype}, {"version", luaT_lua_version}, {"pointer", luaT_lua_pointer}, {NULL, NULL} |