diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-02-04 14:16:06 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-02-04 14:16:06 -0500 |
| commit | 32da3a322636ed5a7131200bd4dbf607a1a29d19 (patch) | |
| tree | 69f961393a5c8a2d572edf77534f8c8d65660bc6 /examples/game | |
| parent | e06d7180d464e570274714dd051278b4cb79f8f9 (diff) | |
Add a `_` prefix on variables so it's easier to debug in GDB
Diffstat (limited to 'examples/game')
| -rw-r--r-- | examples/game/color.tm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/game/color.tm b/examples/game/color.tm index c7ba557a..f8702570 100644 --- a/examples/game/color.tm +++ b/examples/game/color.tm @@ -12,12 +12,12 @@ struct Color(r,g,b:Num,a=1.0): func draw_rectangle(c:Color, pos:Vec2, size:Vec2): inline C { DrawRectangle( - (int)($pos.$x), (int)($pos.$y), (int)($size.$x), (int)($size.$y), + (int)(_$pos.$x), (int)(_$pos.$y), (int)(_$size.$x), (int)(_$size.$y), ((Color){ - (int8_t)(uint8_t)(255.*$c.$r), - (int8_t)(uint8_t)(255.*$c.$g), - (int8_t)(uint8_t)(255.*$c.$b), - (int8_t)(uint8_t)(255.*$c.$a), + (int8_t)(uint8_t)(255.*_$c.$r), + (int8_t)(uint8_t)(255.*_$c.$g), + (int8_t)(uint8_t)(255.*_$c.$b), + (int8_t)(uint8_t)(255.*_$c.$a), }) ); } |
