Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/torch7.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonan Collobert <ronan@collobert.com>2014-10-22 03:57:01 +0400
committerRonan Collobert <ronan@collobert.com>2014-10-22 03:57:01 +0400
commit14636ffe013c1ca0c3fb5b6d182bea86a89f8a78 (patch)
treeb999690d142ffcd1ea123cf66e86b665b1e3b8cc /utils.c
parent98619f496e079c2880032eac3b19fe89cb0292d0 (diff)
added (yet undocumented) support for custom metatypes in luaT/torch7 type system
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils.c b/utils.c
index 159fd5a..07ea13e 100644
--- a/utils.c
+++ b/utils.c
@@ -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}