View definition

(*State).ToInteger

Defined in github.com/Shopify/go-lua/lua.go

Description

ToInteger converts the Lua value at index into a signed integer. The Lua value must be a number, or a string convertible to a number.

If the number is not an integer, it is truncated in some non-specified way.

If the operation failed, the second return value will be false.

http://www.lua.org/manual/5.2/manual.html#lua_tointegerx

ToInteger is referenced in 2 repositories

github.com/Shopify/go-lua github.com/Shopify/goluago