lua_gettop
function · lua · boundary
- Address
0x6f3070· 10 bytes, up to0x6f3079- Meaning
- Returns the number of values on the stack
- 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 25
- SetLoggingFlag ui
- luaL_callmeta lua
- luaL_setn lua
- luaL_getn lua
- luaL_ref lua
- luaL_unref lua
- luaL_loadfile lua
- ScriptDebugProfileStop ui
- ScriptPcall ui
- ScriptXpcall ui
- ScriptDebugStack ui
- FrameScript_GetText ui
- EditBox::AddHistoryLine ui
- EditBox::SetMaxBytes ui
- EditBox::SetMaxLetters ui
- Texture::SetTexCoord ui
- bit_band lua
- bit_bor lua
- bit_bxor lua
- math_min lua
- math_max lua
- math_random lua
- luaB_tinsert lua
- str_char lua
- str_gsub lua
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.