From 40bb265b522cddbc67dc44776f622d61fa268ab1 Mon Sep 17 00:00:00 2001 From: nmlgc Date: Sat, 14 Mar 2020 22:42:36 +0100 Subject: [PATCH] [Maintenance] Add macros for abstracting dot types based on width macros Part of P0083, funded by Yanga. --- ReC98.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ReC98.h b/ReC98.h index 3d8a8c6c..a40c3954 100644 --- a/ReC98.h +++ b/ReC98.h @@ -86,6 +86,10 @@ typedef int8_t sdots8_t; typedef int16_t sdots16_t; typedef int32_t sdots32_t; +// Abstracted dot types, with their width defined by a macro. +#define dots_t_(x) dots##x##_t +#define dots_t(x) dots_t_(x) + typedef enum { PL_B, PL_R, PL_G, PL_E, PL_COUNT } vram_plane_t;