Add macos support

This commit is contained in:
Harshit-Dhanwalkar 2026-06-10 20:30:10 +05:30
parent 49b58febba
commit 14cc7dcc2e
10 changed files with 616 additions and 250 deletions

View file

@ -1,5 +1,4 @@
#include "nl_printf.h"
// #include "nolibc.h"
#include "nolibc.h"
#include <stdarg.h>
#include <stddef.h>
@ -163,3 +162,7 @@ int nl_snprintf(char *buf, size_t size, const char *fmt, ...) {
va_end(ap);
return r;
}
void nl_eprint(const char *msg) {
nl_write(2, msg, nl_strlen(msg));
}