MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / luaS_eqlngstr

Function luaS_eqlngstr

third-party/lua-5.2.4/src/lstring.c:33–39  ·  view source on GitHub ↗

** equality for long strings */

Source from the content-addressed store, hash-verified

31** equality for long strings
32*/
33int luaS_eqlngstr (TString *a, TString *b) {
34 size_t len = a->tsv.len;
35 lua_assert(a->tsv.tt == LUA_TLNGSTR && b->tsv.tt == LUA_TLNGSTR);
36 return (a == b) || /* same instance or... */
37 ((len == b->tsv.len) && /* equal length and ... */
38 (memcmp(getstr(a), getstr(b), len) == 0)); /* equal contents */
39}
40
41
42/*

Callers 2

luaV_equalobj_Function · 0.70
luaS_eqstrFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected