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

Function getMode

third-party/lua-5.5.0/src/lbaselib.c:342–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

340
341
342static const char *getMode (lua_State *L, int idx) {
343 const char *mode = luaL_optstring(L, idx, "bt");
344 if (strchr(mode, 'B') != NULL) /* Lua code cannot use fixed buffers */
345 luaL_argerror(L, idx, "invalid mode");
346 return mode;
347}
348
349
350static int luaB_loadfile (lua_State *L) {

Callers 2

luaB_loadfileFunction · 0.85
luaB_loadFunction · 0.85

Calls 1

luaL_argerrorFunction · 0.70

Tested by

no test coverage detected