Quash Shell  0.1
A simple yet powerfull shell program
 All Classes Files Functions Variables Typedefs Enumerations Macros
Macros
debug.h File Reference

This file holds useful macros for debugging purposes. More...

#include <stdio.h>

Go to the source code of this file.

Macros

#define PRINT_DEBUG(fmt,...)
 Print statement that only triggers if DEBUG is defined. More...
 
#define IFDEBUG(x)
 Insert code that is only compiled if DEBUG is defined. More...
 

Detailed Description

This file holds useful macros for debugging purposes.

Macro Definition Documentation

#define IFDEBUG (   x)

Insert code that is only compiled if DEBUG is defined.

Parameters
xCode to insert
#define PRINT_DEBUG (   fmt,
  ... 
)

Print statement that only triggers if DEBUG is defined.

Parameters
fmtFormat for the fprintf statement. This format is appended to the information refering to the location in the code the macro is expanded at.
...Arguments to be substituted into the format string