X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Debug%2Fprint%2Fprint.h;h=adeb2c4849ed0286a6c0c0f5f09b82eadc79fc96;hb=5f262ea4b68a07e9b94ce0a49c0f7196e5f32b3b;hp=14628f6dfacf78c16308ef1903da9bc791d49396;hpb=54c11ebd0785676b078e85cf3f9f57e72c1e5dc3;p=kiibohd-controller.git diff --git a/Debug/print/print.h b/Debug/print/print.h index 14628f6..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, ... ); @@ -114,7 +113,5 @@ void hex32ToStr_op( uint32_t in, char* out, uint8_t op ); void revsStr ( char* in ); 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 decToInt ( char* in ); // Returns the int representation of a string - -#endif +int numToInt ( char* in ); // Returns the int representation of a string