MCPcopy Create free account
hub / github.com/TypesettingTools/Aegisub / check_string

Function check_string

libaegisub/lua/utils.cpp:56–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56std::string check_string(lua_State *L, int idx) {
57 size_t len = 0;
58 const char *str = lua_tolstring(L, idx, &len);
59 if (!str) typerror(L, idx, "string");
60 return std::string(str, len);
61}
62
63long check_int(lua_State *L, int idx) {
64 auto v = lua_tointeger(L, idx);

Callers 14

check_wxstringFunction · 0.85
LuaSetTaskMethod · 0.85
LuaSetTitleMethod · 0.85
LuaDebugOutMethod · 0.85
check_wxstringFunction · 0.85
decode_pathFunction · 0.85
lua_text_textentsFunction · 0.85
lua_set_status_textFunction · 0.85
LuaIncludeMethod · 0.85
LuaCommandMethod · 0.85
LuaExportFilterMethod · 0.85
LuaDialogMethod · 0.85

Calls 1

typerrorFunction · 0.85

Tested by

no test coverage detected