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

Function save

third-party/lua-5.2.4/src/llex.c:52–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50
51
52static void save (LexState *ls, int c) {
53 Mbuffer *b = ls->buff;
54 if (luaZ_bufflen(b) + 1 > luaZ_sizebuffer(b)) {
55 size_t newsize;
56 if (luaZ_sizebuffer(b) >= MAX_SIZET/2)
57 lexerror(ls, "lexical element too long", 0);
58 newsize = luaZ_sizebuffer(b) * 2;
59 luaZ_resizebuffer(ls->L, b, newsize);
60 }
61 b->buffer[luaZ_bufflen(b)++] = cast(char, c);
62}
63
64
65void luaX_init (lua_State *L) {

Callers 5

txtTokenFunction · 0.70
read_numeralFunction · 0.70
read_long_stringFunction · 0.70
escerrorFunction · 0.70
read_stringFunction · 0.70

Calls 1

lexerrorFunction · 0.70

Tested by

no test coverage detected