MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / isKstr

Function isKstr

xrepo/packages/l/lua/port/lua/src/lcode.c:1220–1223  ·  view source on GitHub ↗

** Check whether expression 'e' is a small literal string */

Source from the content-addressed store, hash-verified

1218** Check whether expression 'e' is a small literal string
1219*/
1220static int isKstr (FuncState *fs, expdesc *e) {
1221 return (e->k == VK && !hasjumps(e) && e->u.info <= MAXARG_B &&
1222 ttisshrstring(&fs->f->k[e->u.info]));
1223}
1224
1225/*
1226** Check whether expression 'e' is a literal integer.

Callers 1

luaK_indexedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected