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

Function check_int

libaegisub/lua/utils.cpp:63–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63long check_int(lua_State *L, int idx) {
64 auto v = lua_tointeger(L, idx);
65 if (v == 0 && !lua_isnumber(L, idx))
66 typerror(L, idx, "number");
67 return v;
68}
69
70size_t check_uint(lua_State *L, int idx) {
71 auto v = lua_tointeger(L, idx);

Callers 1

ObjectIndexWriteMethod · 0.85

Calls 1

typerrorFunction · 0.85

Tested by

no test coverage detected