MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / isinstack

Function isinstack

deps/lua/src/ldebug.c:559–564  ·  view source on GitHub ↗

only ANSI way to check whether a pointer points to an array */

Source from the content-addressed store, hash-verified

557
558/* only ANSI way to check whether a pointer points to an array */
559static int isinstack (CallInfo *ci, const TValue *o) {
560 StkId p;
561 for (p = ci->base; p < ci->top; p++)
562 if (o == p) return 1;
563 return 0;
564}
565
566
567void luaG_typeerror (lua_State *L, const TValue *o, const char *op) {

Callers 1

luaG_typeerrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected