FFI: Add cdata object type.

This commit is contained in:
Mike Pall
2010-11-26 13:28:46 +01:00
parent 6290d6f5d0
commit 2fd1292955
7 changed files with 47 additions and 10 deletions

View File

@@ -11,12 +11,12 @@
/* Object type names. */
LJ_DATADEF const char *const lj_obj_typename[] = { /* ORDER LUA_T */
"no value", "nil", "boolean", "userdata", "number", "string",
"table", "function", "userdata", "thread", "proto"
"table", "function", "userdata", "thread", "proto", "cdata"
};
LJ_DATADEF const char *const lj_obj_itypename[] = { /* ORDER LJ_T */
"nil", "boolean", "boolean", "userdata", "string", "upval", "thread",
"proto", "function", "trace", "table", "userdata", "number"
"proto", "function", "trace", "cdata", "table", "userdata", "number"
};
/* Compare two objects without calling metamethods. */