Implement debuglog function

Issue #155 resolved
Patryk Kubiak created an issue

The function for debug logs will be useful. It should reserve some RAM memory for a strings array and work similar to SaveError function (some stack of logs)

The prototype:

#!c
typedef enum
{
    oC_LogType_Error      = (1<<0) , 
    oC_LogType_Track ,   = (1<<1) ,
    oC_LogType_Warning = (1<<2), 
    oC_LogType_Info        = (1<<3),
} oC_LogType_t;

#if CFG_BOOLEAN_DEBUGLOG_ENABLED == true
#define kdebuglog( LogType , ... ) _kdebuglog( LogType , __VA_ARGS__ ) 
#else
#define kdebuglog( LogType , ... )
#endif

extern void _kdebuglog( oC_LogType_t LogType , char * Format , ... ); 

Comments (2)

  1. Log in to comment