Skip to content

Commit

Permalink
Update types.hexa
Browse files Browse the repository at this point in the history
  • Loading branch information
PeyTy committed Nov 29, 2024
1 parent 8540c54 commit 8b3a482
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dlls/types.hexa
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ enum Bool32: Int32 {
// TODO ^ types check infer 0i32 etc same as int
True = 1
// TODO ^ `true` is any non-0 value `True = 1 or _` or just `v != Bool32.False`
static fun fromBool(value Bool) Bool32 {
if value {
return Bool32.True
}

return Bool32.False
}
}

// LONG is signed 32-bit int32_t
Expand Down

0 comments on commit 8b3a482

Please sign in to comment.