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

Function table_get_f32

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

Source from the content-addressed store, hash-verified

15// ---------------------------------------------------------------------------
16
17fn table_get_f32(t: &mlua::Table, key: &str) -> Option<f32> {
18 t.get::<mlua::Value>(key)
19 .ok()
20 .and_then(|v| lua_val_to_f32(&v))
21}
22
23/// Get an optional boolean parameter, defaulting to `false` when absent.
24///

Callers 4

table_get_u32Function · 0.70
parse_sphere_argsFunction · 0.70
parse_cylinder_argsFunction · 0.70
execute_luaFunction · 0.70

Calls 1

lua_val_to_f32Function · 0.85

Tested by

no test coverage detected