X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Debug%2Fprint%2Fprint.h;h=adeb2c4849ed0286a6c0c0f5f09b82eadc79fc96;hb=HEAD;hp=c3494328b6dc97dea09cb7d723ad75ba05f63302;hpb=d6d792fdf9343dc7cc5220bfa8de5b25dbf9d922;p=kiibohd-controller.git diff --git a/Debug/print/print.h b/Debug/print/print.h index c349432..adeb2c4 100644 --- a/Debug/print/print.h +++ b/Debug/print/print.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2011-2014 by Jacob Alexander +/* Copyright (C) 2011-2015 by Jacob Alexander * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -19,8 +19,7 @@ * THE SOFTWARE. */ -#ifndef print_h__ -#define print_h__ +#pragma once // ----- Includes ----- @@ -54,11 +53,11 @@ // Special Msg Constructs (Uses VT100 tags) #define dPrintMsg(colour_code_str,msg,...) \ - printstrs("\033[", colour_code_str, "m", msg, "\033[0m - ", __VA_ARGS__, NL, "\0\0\0") + printstrs("\033[", colour_code_str, "m", msg, "\033[0m - ", __VA_ARGS__, NL, "\0\0\0") #define printMsgNL(colour_code_str,msg,str) \ - print("\033[" colour_code_str "m" msg "\033[0m - " str NL) + print("\033[" colour_code_str "m" msg "\033[0m - " str NL) #define printMsg(colour_code_str,msg,str) \ - print("\033[" colour_code_str "m" msg "\033[0m - " str) + print("\033[" colour_code_str "m" msg "\033[0m - " str) // Info Messages #define info_dPrint(...) dPrintMsg ("1;32", "INFO", __VA_ARGS__) // Info Msg @@ -88,7 +87,7 @@ #define print(s) _print(s) #endif -void _print(const char *s); +void _print( const char *s ); void printstrs( char* first, ... ); @@ -116,5 +115,3 @@ uint16_t lenStr ( char* in ); int16_t eqStr ( char* str1, char* str2 ); // Returns -1 if identical, last character of str1 comparison (0 if str1 is like str2) int numToInt ( char* in ); // Returns the int representation of a string -#endif -