2021-09-15 23:24:19 +00:00
|
|
|
#ifndef ULTRA64_PRINTF_H
|
|
|
|
#define ULTRA64_PRINTF_H
|
2021-12-01 00:08:57 +00:00
|
|
|
|
2022-11-13 07:16:01 +00:00
|
|
|
#include "ultratypes.h"
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
/* 0x0 */ union {
|
|
|
|
/* 0x0 */ s64 ll;
|
|
|
|
/* 0x0 */ f64 ld;
|
|
|
|
} v;
|
|
|
|
/* 0x8 */ char* s;
|
|
|
|
/* 0xC */ s32 n0;
|
|
|
|
/* 0x10 */ s32 nz0;
|
|
|
|
/* 0x14 */ s32 n1;
|
|
|
|
/* 0x18 */ s32 nz1;
|
|
|
|
/* 0x1C */ s32 n2;
|
|
|
|
/* 0x20 */ s32 nz2;
|
|
|
|
/* 0x24 */ s32 prec;
|
|
|
|
/* 0x28 */ s32 width;
|
|
|
|
/* 0x2C */ u32 nchar;
|
|
|
|
/* 0x30 */ u32 flags;
|
|
|
|
/* 0x34 */ u8 qual;
|
2020-10-03 15:22:44 +00:00
|
|
|
} _Pft; // size = 0x38
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2021-02-14 00:49:40 +00:00
|
|
|
typedef void* (*PrintCallback)(void*, const char*, u32);
|
|
|
|
|
2020-03-17 04:31:30 +00:00
|
|
|
#define FLAGS_SPACE 1
|
|
|
|
#define FLAGS_PLUS 2
|
|
|
|
#define FLAGS_MINUS 4
|
|
|
|
#define FLAGS_HASH 8
|
|
|
|
#define FLAGS_ZERO 16
|
|
|
|
|
|
|
|
#endif
|