aboutsummaryrefslogtreecommitdiff
path: root/src/lj_ctype.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_ctype.c')
-rw-r--r--src/lj_ctype.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lj_ctype.c b/src/lj_ctype.c
index 4655eee7..204be034 100644
--- a/src/lj_ctype.c
+++ b/src/lj_ctype.c
@@ -333,6 +333,14 @@ CTInfo lj_ctype_info(CTState *cts, CTypeID id, CTSize *szp)
333 return qual; 333 return qual;
334} 334}
335 335
336/* Ditto, but follow a reference. */
337CTInfo lj_ctype_info_raw(CTState *cts, CTypeID id, CTSize *szp)
338{
339 CType *ct = ctype_get(cts, id);
340 if (ctype_isref(ct->info)) id = ctype_cid(ct->info);
341 return lj_ctype_info(cts, id, szp);
342}
343
336/* Get ctype metamethod. */ 344/* Get ctype metamethod. */
337cTValue *lj_ctype_meta(CTState *cts, CTypeID id, MMS mm) 345cTValue *lj_ctype_meta(CTState *cts, CTypeID id, MMS mm)
338{ 346{