Skip to content

Commit 873a858

Browse files
committed
Simplifying to use int is rw instead of pointer
1 parent 629c3b2 commit 873a858

File tree

4 files changed

+31
-35
lines changed

4 files changed

+31
-35
lines changed

META6.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"libraries/raylib"
3434
],
3535
"test-depends": [],
36-
"version": "0.0.11",
36+
"version": "0.0.12",
3737
"source-url": "https://github.com/vushu/raylib-raku.git",
3838
"builder": "Distribution::Builder::MakeFromJSON",
3939
"build": {

lib/Raylib/Actions.rakumod

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -361,10 +361,6 @@ class RaylibActions {
361361
$raku-type = $return-type<identifier>.made;
362362
}
363363

364-
if ($pointer && $raku-type ne 'Str' && !$is-identifier) {
365-
return " returns Pointer[$raku-type]";
366-
}
367-
368364
if ($raku-type ne 'void') {
369365
# no returns on void type
370366
return " returns $raku-type";
@@ -395,7 +391,7 @@ class RaylibActions {
395391
}
396392

397393
multi method parameters($/ where $<pointer> && $<type> eq 'int') {
398-
make "Pointer[int32] \$$<identifier>, {$<parameters>.map: *.made.join(',')}";
394+
make "int32 \$$<identifier> is rw, {$<parameters>.map: *.made.join(',')}";
399395
}
400396

401397
multi method parameters($/) {

0 commit comments

Comments
 (0)