From: Stephan Mühlstrasser Date: Tue, 18 Nov 2014 22:05:50 +0000 (+0100) Subject: Implement macros that shortcut color function calls. X-Git-Tag: V2.15~22^2~50 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d9f764aa07692442ee1d9c92f0e2acd398429be2;p=cc65 Implement macros that shortcut color function calls. --- 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