MCPcopy 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
1443func (ls *LState) ToBool(n int) bool {
1444 return LVAsBool(ls.Get(n))
1445}
1446
1447func (ls *LState) ToInt(n int) int {
1448 if lv, ok := ls.Get(n).(LNumber); ok {

Callers

nothing calls this directly

Calls 2

GetMethod · 0.95
LVAsBoolFunction · 0.85

Tested by

no test coverage detected