Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/yuin/gopher-lua
/ ToBool
Method
ToBool
_state.go:1443–1445 ·
view source on GitHub ↗
* }}} */ * toType {{{ */
(n int)
Source
from the content-addressed store, hash-verified
1441
/* toType {{{ */
1442
1443
func
(ls *LState) ToBool(n int) bool {
1444
return
LVAsBool(ls.Get(n))
1445
}
1446
1447
func
(ls *LState) ToInt(n int) int {
1448
if
lv, ok := ls.Get(n).(LNumber); ok {
Callers
nothing calls this directly
Calls
2
Get
Method · 0.95
LVAsBool
Function · 0.85
Tested by
no test coverage detected