MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / isKstr

Function isKstr

3rd/lua-5.4.3/src/lcode.c:1202–1205  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1200** Check whether expression 'e' is a small literal string
1201*/
1202static int isKstr (FuncState *fs, expdesc *e) {
1203 return (e->k == VK && !hasjumps(e) && e->u.info <= MAXARG_B &&
1204 ttisshrstring(&fs->f->k[e->u.info]));
1205}
1206
1207/*
1208** Check whether expression 'e' is a literal integer.

Callers 1

luaK_indexedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected