Match bool c style

This commit is contained in:
Krzosa Karol
2023-04-16 15:30:08 +02:00
parent d4a7fc32c8
commit 4f658c0c09
12 changed files with 96 additions and 96 deletions

View File

@@ -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)

View File

@@ -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

View File

@@ -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