#ifndef _DEBUG_H_ #define _DEBUG_H_ /* File: debug.h * Author: Sam Rebelsky * Version: 1.0 of February 2000 * * Some simple debugging routines. Compile with -DDEBUG to * print logging messages. Compile without DEBUG set to * avoid logging messages. */ #ifdef DEBUG #define LOG_S(str) fprintf(stderr, "LOG: %s\n", str); #define LOG_SS(str1,str2) fprintf(stderr, "LOG: %s, %s\n", str1, str2); #define LOG_SI(str,i) fprintf(stderr, "LOG: %s, %d\n", str, i); #else #define LOG_S(str) #define LOG_SS(str1,str2) #define LOG_SI(str,i) #endif #endif _DEBUG_H_