Skip to content

Commit

Permalink
make List into a global
Browse files Browse the repository at this point in the history
  • Loading branch information
liquidev committed Jun 7, 2022
1 parent a6fb7ae commit bdaedde
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mica-hl/src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ impl Engine {
engine.set_built_type(&boolean).unwrap();
engine.set_built_type(&number).unwrap();
engine.set_built_type(&string).unwrap();
engine.set_built_type(&list).unwrap();

engine
}
Expand Down Expand Up @@ -374,7 +375,7 @@ impl Engine {
where
T: Any,
{
let value = typ.make_type();
let value = typ.make_type(&mut self.gc);
self.set(typ.type_name.deref(), value)
}
}
Expand Down

0 comments on commit bdaedde

Please sign in to comment.