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

22
includes/std/io.pat Normal file
View File

@@ -0,0 +1,22 @@
#pragma once
namespace std {
fn print(str fmt, auto ... args) {
builtin::std::print(fmt, args);
};
fn format(str fmt, auto ... args) {
return builtin::std::format(fmt, args);
};
fn error(str message) {
builtin::std::error(message);
};
fn warning(str message) {
builtin::std::warning(message);
};
}