benilla-re systems structs docs

lua_isstring

function · lua · boundary

Address
0x6f3510 · 24 bytes, up to 0x6f3527
Meaning
Returns whether a stack value is a string or a number
Confidence
verified, proof two
Name from
the community database (idb)
Finding
ui/luastate#reading-numeric-arguments

Finding: Reading numeric arguments in ui: the Lua state, its library and C functions

lua_tonumber answers the number, or a string's value when it parses fully; for anything else, an absent argument included, it answers 0.0 and never raises. lua_isnumber accepts exactly what converts; lua_isstring accepts numbers and strings. Integers come from __ftol, truncating toward zero. What a function does with a missing number is its own: some raise (SetAlpha), some use a default (a colour's alpha of 1), and some return having done nothing (SetScrollFromBottom). An argument count is checked by few functions, and exactly: SetMaxLetters raises unless it has two values (self included) and stores 0 only when the second is not a number.

The derivation is in the doc.

Callers 285

Callees 1

Calls and jumps by a bare address, from tables/calls.tsv.