summaryrefslogtreecommitdiff
path: root/src/code/z_sample.c
diff options
context:
space:
mode:
authorcadmic <cadmic24@gmail.com>2024-01-09 04:59:03 -0800
committerGitHub <noreply@github.com>2024-01-09 07:59:03 -0500
commitcd917b0cb8c20e457d43805ee27d2597daed63e3 (patch)
tree6506a87bb08252072ca10e6993f64f2b475fca09 /src/code/z_sample.c
parente146d7bc2642633f8b09357c115014a3dfca59da (diff)
Create debug macros for common functions (#1597)
* Create debug macros for common functions * Revert NDEBUG change * MALLOCR -> MALLOC_R * DEBUG -> OOT_DEBUG * Use the same name for debug and non-debug matrix functions * Fix file/line argument order * Revert g[s]DPNoOp[Tag] * Use SystemArena_MallocDebug directly in GameAlloc_MallocDebug * MTXF_TO_MTX -> MATRIX_TO_MTX
Diffstat (limited to 'src/code/z_sample.c')
-rw-r--r--src/code/z_sample.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/code/z_sample.c b/src/code/z_sample.c
index 3b5e1c208..d2469cf40 100644
--- a/src/code/z_sample.c
+++ b/src/code/z_sample.c
@@ -22,7 +22,7 @@ void Sample_Draw(SampleState* this) {
View_Apply(view, VIEW_ALL);
{
- Mtx* mtx = Graph_Alloc(gfxCtx, sizeof(Mtx));
+ Mtx* mtx = GRAPH_ALLOC(gfxCtx, sizeof(Mtx));
guPosition(mtx, SREG(37), SREG(38), SREG(39), 1.0f, SREG(40), SREG(41), SREG(42));
gSPMatrix(POLY_OPA_DISP++, mtx, G_MTX_LOAD);
@@ -79,8 +79,8 @@ void Sample_SetupView(SampleState* this) {
void Sample_LoadTitleStatic(SampleState* this) {
u32 size = _title_staticSegmentRomEnd - _title_staticSegmentRomStart;
- this->staticSegment = GameState_Alloc(&this->state, size, "../z_sample.c", 163);
- DmaMgr_RequestSyncDebug(this->staticSegment, (uintptr_t)_title_staticSegmentRomStart, size, "../z_sample.c", 164);
+ this->staticSegment = GAME_STATE_ALLOC(&this->state, size, "../z_sample.c", 163);
+ DMA_REQUEST_SYNC(this->staticSegment, (uintptr_t)_title_staticSegmentRomStart, size, "../z_sample.c", 164);
}
void Sample_Init(GameState* thisx) {