mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 15:14:08 +00:00
FFI: Do not resolve strings passed to parameterized types.
This commit is contained in:
parent
6cee1333ef
commit
e9e45313e7
@ -216,9 +216,8 @@ static CPToken cp_param(CPState *cp)
|
||||
cp->param = o+1;
|
||||
if (tvisstr(o)) {
|
||||
cp->str = strV(o);
|
||||
cp->val.id = lj_ctype_getname(cp->cts, &cp->ct, cp->str, cp->tmask);
|
||||
if (ctype_type(cp->ct->info) == CT_KW)
|
||||
return ctype_cid(cp->ct->info);
|
||||
cp->val.id = 0;
|
||||
cp->ct = &cp->cts->tab[0];
|
||||
return CTOK_IDENT;
|
||||
} else if (tvisnumber(o)) {
|
||||
cp->val.i32 = numberVint(o);
|
||||
|
Loading…
Reference in New Issue
Block a user