From d9f764aa07692442ee1d9c92f0e2acd398429be2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stephan=20M=C3=BChlstrasser?= Date: Tue, 18 Nov 2014 23:05:50 +0100 Subject: [PATCH] Implement macros that shortcut color function calls. --- include/c1p.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/c1p.h b/include/c1p.h index cea31b0f3..5789d7156 100644 --- a/include/c1p.h +++ b/include/c1p.h @@ -36,6 +36,12 @@ # error "This module may only be used when compiling for the Challenger 1P!" #endif -/* empty for now */ +/* The following #defines will cause the matching functions calls in conio.h +** to be overlaid by macros with the same names, saving the function call +** overhead. +*/ +#define _textcolor(color) COLOR_WHITE +#define _bgcolor(color) COLOR_BLACK +#define _bordercolor(color) COLOR_BLACK #endif -- 2.39.2