n3tael merged pull request n3tael/labast#6 2024-06-20 20:39:40 +00:00
Implement new features
n3tael pushed to master at n3tael/labast 2024-06-20 20:39:40 +00:00
6a35058d54 Merge pull request 'Implement new features' (#6) from bedohswe/labast:master into master
f69354ec31 Fix skill issues
fb1207bae5 Fix a compatability issue and a compilation error
751971576e Fix function signature in #native...
7223b995a3 Fix function signature in test/native_test.rs
Compare 10 commits »
n3tael approved n3tael/labast#6 2024-06-20 20:39:30 +00:00
Implement new features
n3tael commented on pull request n3tael/labast#6 2024-06-20 20:15:13 +00:00
Implement new features

строки 46-59 это буквально код функции exec (за ислюкчением того что вместо arg, tocall)

n3tael commented on pull request n3tael/labast#6 2024-06-20 20:15:13 +00:00
Implement new features

тут тоже можно добавить unsafe перед fn, и убрать unsafe-блоки

n3tael commented on pull request n3tael/labast#6 2024-06-20 20:15:13 +00:00
Implement new features

из-за того что stack_pop_callback, stack_push_callback и stack_len_callback станут unsafe, нужно изменить тип:

n3tael commented on pull request n3tael/labast#6 2024-06-20 20:15:13 +00:00
Implement new features
n3tael suggested changes for n3tael/labast#6 2024-06-20 20:15:13 +00:00
Implement new features
n3tael commented on pull request n3tael/labast#6 2024-06-20 20:15:13 +00:00
Implement new features

а тут обернуть вызов функции в unsafe-блок

n3tael commented on pull request n3tael/labast#6 2024-06-20 20:15:13 +00:00
Implement new features

можно просто написать unsafe перед extern, и убрать return

n3tael commented on pull request n3tael/labast#6 2024-06-20 20:15:13 +00:00
Implement new features
n3tael commented on pull request n3tael/labast#6 2024-06-20 20:15:13 +00:00
Implement new features

можно использовать макрос format! чтобы передать название файла:

n3tael commented on pull request n3tael/labast#6 2024-06-20 20:15:12 +00:00
Implement new features

?

n3tael pushed to main at n3tael/p3he 2024-04-07 18:46:39 +00:00
eb6b4b987c Make module loading in game more sane.
f93dfb1fb2 Add an empty game.
00f930e151 Make it possible to render an empty level.
e62f985e73 Make processevent() look a tiny bit better.
08347cdc3f Fix the size of drawn segments.
Compare 16 commits »
n3tael pushed to main at n3tael/p3he 2024-04-06 19:41:02 +00:00
dfb6594ec5 Merge remote-tracking branch 'upstream/main'
f561ecc076 Merge pull request 'Remove useless imports' (#8) from n3tael/p3he:main into main
Compare 2 commits »
n3tael created pull request bedohswe/p3he#9 2024-04-06 19:40:19 +00:00
docs(readme): Added info about loading levels and controls
n3tael pushed to main at n3tael/p3he 2024-04-06 19:38:55 +00:00
b05a139cbf docs(readme): Added info about loading levels and controls
n3tael created pull request bedohswe/p3he#8 2024-04-06 19:15:01 +00:00
Remove useless imports
n3tael pushed to main at n3tael/p3he 2024-04-06 19:14:14 +00:00
9e90b02f79 Remove useless imports
1494f28a78 Add __iadd__ and __isub__ to GyroVector.
c745c6a82b Merge pull request 'feat(debug/mini_map): round mini map' (#7) from n3tael/p3he:main into main
Compare 3 commits »
n3tael created pull request bedohswe/p3he#7 2024-04-06 18:44:40 +00:00
feat(debug/mini_map): round mini map