MCPcopy Create free account
hub / github.com/PlutoLang/Pluto / string pluto_checkstring

Method string pluto_checkstring

src/lauxlib.cpp:445–449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

443
444
445PLUTOLIB_API std::string pluto_checkstring (lua_State *L, int arg) {
446 size_t len;
447 const char *str = luaL_checklstring(L, arg, &len);
448 return std::string(str, len);
449}
450
451
452PLUTOLIB_API std::string pluto_optstring (lua_State *L, int arg, std::string def) {

Callers

nothing calls this directly

Calls 1

luaL_checklstringFunction · 0.85

Tested by

no test coverage detected