From bd1326d83e23bab7e66db464d40aef5c703c4b1b Mon Sep 17 00:00:00 2001 From: Abdelrahman Date: Sun, 4 Aug 2024 16:54:11 +0100 Subject: [PATCH] Swap arg order for BUF_TYPE macro --- src/img.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/img.h b/src/img.h index 96539da..432ac19 100644 --- a/src/img.h +++ b/src/img.h @@ -5,7 +5,7 @@ #include "mem_arena.h" #include -#define BUF_TYPE(NAME, TYPE) \ +#define BUF_TYPE(TYPE, NAME) \ typedef struct { \ u64 width; \ u64 height; \ @@ -20,9 +20,9 @@ struct colour { u8 a; }; -BUF_TYPE(Buffer, void); -BUF_TYPE(Image, Colour); -BUF_TYPE(Depth, f32); +BUF_TYPE(void, Buffer); +BUF_TYPE(Colour, Image); +BUF_TYPE(f32, Depth); #define init_buffer(ARENA, BUF) \ _init_buffer(ARENA, (Buffer *)BUF, sizeof(*((BUF)->buf)))