Match bool c style
This commit is contained in:
@@ -32,13 +32,13 @@ len : S64
|
||||
*(result.data->*S64) = *(a.data->*S64) + b
|
||||
return result
|
||||
|
||||
"==" :: (a: Any, b: S64): Bool
|
||||
"==" :: (a: Any, b: S64): bool
|
||||
result := false
|
||||
if a.type == S64
|
||||
result = *(a.data->*S64) == b
|
||||
return result
|
||||
|
||||
"==" :: (a: Any, b: Any): Bool
|
||||
"==" :: (a: Any, b: Any): bool
|
||||
result := false
|
||||
if a.type == S64 && b.type == S64
|
||||
result = *(a.data->*S64) == *(b.data->*S64)
|
||||
|
||||
@@ -46,7 +46,7 @@ main :: (): int
|
||||
|
||||
// Recursion is a pain point for this kinds of algorithms
|
||||
// As can be seen here it works very nicely
|
||||
make_sound :: (should_exit_recursion: Bool = false): Asset
|
||||
make_sound :: (should_exit_recursion: bool = false): Asset
|
||||
if should_exit_recursion == true
|
||||
asset: Asset
|
||||
asset.tag = Asset_Tag.Sound
|
||||
|
||||
@@ -184,7 +184,7 @@ Windows_Bitmap :: struct
|
||||
hdc: HDC
|
||||
dib: HBITMAP
|
||||
|
||||
CreateBitmap :: (size: V2.Vec2I, bottom_up: Bool = true): Windows_Bitmap
|
||||
CreateBitmap :: (size: V2.Vec2I, bottom_up: bool = true): Windows_Bitmap
|
||||
result: Windows_Bitmap = {size = size}
|
||||
if bottom_up == false
|
||||
result.size.y = -result.size.y
|
||||
|
||||
Reference in New Issue
Block a user