2022-11-19 11:30:36 +00:00
|
|
|
#pragma once
|
|
|
|
#include <CType.h>
|
|
|
|
#include <Types.h>
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
2022-11-19 14:53:58 +00:00
|
|
|
#define _format(n, m) __attribute__((format(printf, n, m)))
|
|
|
|
|
2022-11-19 11:30:36 +00:00
|
|
|
typedef int (*callback_t)(char, void*);
|
|
|
|
|
2022-11-19 14:43:09 +00:00
|
|
|
isize cstyle_format(const char* format, callback_t callback, void* arg, va_list ap);
|