MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / getstring_aux

Function getstring_aux

Dependencies/lua/src/ltests.c:1332–1349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1330}
1331
1332static const char *getstring_aux (lua_State *L, char *buff, const char **pc) {
1333 int i = 0;
1334 skip(pc);
1335 if (**pc == '"' || **pc == '\'') { /* quoted string? */
1336 int quote = *(*pc)++;
1337 while (**pc != quote) {
1338 if (**pc == '\0') luaL_error(L, "unfinished string in C script");
1339 buff[i++] = *(*pc)++;
1340 }
1341 (*pc)++;
1342 }
1343 else {
1344 while (**pc != '\0' && !strchr(delimits, **pc))
1345 buff[i++] = *(*pc)++;
1346 }
1347 buff[i] = '\0';
1348 return buff;
1349}
1350
1351
1352static int getindex_aux (lua_State *L, lua_State *L1, const char **pc) {

Callers

nothing calls this directly

Calls 2

luaL_errorFunction · 0.85
skipFunction · 0.70

Tested by

no test coverage detected