includes/std: Moved stdlib to std folder, added all builtin functions

This commit is contained in:
WerWolv
2022-01-30 17:53:48 +01:00
parent 00b7c912f2
commit 6325dbce0d
19 changed files with 190 additions and 19 deletions

17
includes/std/ptr.pat Normal file
View File

@@ -0,0 +1,17 @@
#pragma once
namespace std::ptr {
fn relative_to_pointer(u128 offset) {
return $;
};
fn relative_to_parent(u128 offset) {
return addressof(parent);
};
fn relative_to_end(u128 offset) {
return std::mem::size() - offset * 2;
};
}