Files

30 lines
492 B
C

#ifndef STDIO_H
#define STDIO_H
#include <stddef.h>
#include <stdbool.h>
//TODO: these should be contained in newlib i guess
//but until i implement it let it be here yo
#define EOF (-1)
#define INT_MAX 2147483647
bool print(const char* data, size_t length);
int printf(const char* __restrict, ...);
int putchar(int);
int puts(const char*);
#define KATAU_DEBUG
#ifdef KATAU_DEBUG
#define debug_log printf
#else
static int debug_log(const char* restrict format, ...)
{
}
#endif
#endif