MCPcopy Create free account
hub / github.com/ad-si/LuaCAD / table_get_bool

Function table_get_bool

crates/luacad/src/lua_engine.rs:23–25  ·  view source on GitHub ↗
(t: &mlua::Table, key: &str)

Source from the content-addressed store, hash-verified

21}
22
23/// Get an optional boolean parameter, defaulting to `false` when absent.
24///
25/// A wrong-typed value (e.g. `center = {0, 0}`) must not silently read as
26/// `false` — that quietly produces the wrong shape.
27fn table_get_bool(
28 t: &mlua::Table,

Callers 3

parse_cube_argsFunction · 0.70
parse_cylinder_argsFunction · 0.70
execute_luaFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected