Papageno
An Advanced Pattern Matching Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros
ppg_debug.h File Reference
#include "ppg_settings.h"
#include "ppg_context.h"
#include <stdlib.h>
#include <stdbool.h>
#include <stdio.h>

Go to the source code of this file.

Macros

#define PPG_LOGGING_SET_ENABLED(STATE)
 A macro to dynamically toggle logging. More...
 
#define PPG_ERROR(...)   printf("*** Error: " __VA_ARGS__);
 A macro for printf style error output.
 
#define PPG_ASSERT(...)
 A macro for assertions of boolean expressions.
 
#define PPG_LOG(...)
 A macro for printf style output.
 
#define PPG_LOG_NOOP
 
#define PPG_UNUSED(X)   (void)(X)
 

Macro Definition Documentation

#define PPG_LOGGING_SET_ENABLED (   STATE)

A macro to dynamically toggle logging.

This macro helps to prevent undefined symbol errors when logging is suppressed in optimized builds.