From 331d83ef5ded68107fd6c04a6277d347f28eebce Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Mon, 15 May 2017 20:18:33 +0430 Subject: chaned some macros to fix the color problem --- bruiser/bruiser.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'bruiser') diff --git a/bruiser/bruiser.h b/bruiser/bruiser.h index 7e4e6ae..4e9c2e7 100644 --- a/bruiser/bruiser.h +++ b/bruiser/bruiser.h @@ -79,17 +79,19 @@ namespace bruiser #define NOT_IMPLEMENTED \ do{\ - std::cout << BROWN << "not implemented yet\n" << NORMAL;\ + printf(BROWN "not implemented yet.");\ + printf(NORMAL"\n");\ }while(0) #define PRINT_WITH_COLOR(X,Y) \ do{\ - std::cout << X << Y << NORMAL;\ + printf(X Y NORMAL);\ }while(0) #define PRINT_WITH_COLOR_LB(X,Y) \ do{\ - std::cout << X << Y << "\n" << NORMAL;\ + printf(X "%s", Y);\ + printf(NORMAL"\n");\ }while(0) /**********************************************************************************************************************/ /*Error Codes*/ -- cgit v1.2.3