1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-07-06 07:56:32 +00:00

[headers 11] stackcheck.h, jpeg functions (#2171)

* [headers 11] stackcheck.h, jpeg functions

* bss
This commit is contained in:
Dragorn421 2024-09-08 18:02:38 +02:00 committed by GitHub
parent c39323a336
commit de1a08c061
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 47 additions and 37 deletions

27
include/stackcheck.h Normal file
View file

@ -0,0 +1,27 @@
#ifndef STACKCHECK_H
#define STACKCHECK_H
#include "ultra64.h"
typedef enum StackStatus {
/* 0 */ STACK_STATUS_OK,
/* 1 */ STACK_STATUS_WARNING,
/* 2 */ STACK_STATUS_OVERFLOW
} StackStatus;
typedef struct StackEntry {
/* 0x00 */ struct StackEntry* next;
/* 0x04 */ struct StackEntry* prev;
/* 0x08 */ u32* head;
/* 0x0C */ u32* tail;
/* 0x10 */ u32 initValue;
/* 0x14 */ s32 minSpace;
/* 0x18 */ const char* name;
} StackEntry;
void StackCheck_Init(StackEntry* entry, void* stackBottom, void* stackTop, u32 initValue, s32 minSpace,
const char* name);
void StackCheck_Cleanup(StackEntry* entry);
u32 StackCheck_Check(StackEntry* entry);
#endif