Andy-Python-Programmer / aero

Aero is a new modern, experimental, UNIX-like operating system following the monolithic kernel design. Supporting modern PC features such as long mode, 5-level paging, and SMP (multicore), to name a few.
https://aero.andypy.dev
GNU General Public License v3.0
1.17k stars 50 forks source link

kernel: Implement a syscall proc macro #65

Closed 48cf closed 2 years ago

48cf commented 2 years ago

This patch introduces a procedural macro that takes care of validating input buffers and paths automagically for us :^) There is still a bit of clean up to do, but for the most part it does what it's supposed to be doing.

Andy-Python-Programmer commented 2 years ago

When you state bug fixing to do, what are those bugs? Also love the automagically work :^)

48cf commented 2 years ago

When you state bug fixing to do, what are those bugs? Also love the automagically work :^)

Oh my bad, it's just that I was in the middle of writing the PR message when I realized what was causing the proc macro to panic when emitting the code for &Path and I fixed it without realizing I left the comment there 😅

Edit: fixed!

Andy-Python-Programmer commented 2 years ago

Thanks @czapek1337!