view common.h @ 26:526a4c34ee2e noffle

[svn] Applied patch from Jim Hague: support for local groups / new command line options --create and --cancel.
author enz
date Sat, 29 Apr 2000 15:45:56 +0100
parents 04124a4423d4
children
line wrap: on
line source

/*
  common.h

  Common declarations.

  $Id: common.h 3 2000-01-04 11:35:42Z enz $
*/

#ifndef COMMON_H
#define COMMON_H

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#define FALSE 0
#define TRUE !0
#define MAXCHAR 2048

#ifdef DEBUG
#include <assert.h>
#define ASSERT( x ) \
    if ( ! ( x ) ) \
        Log_err( "ASSERTION FAILED: %s line %i", __FILE__, __LINE__ ); \
    assert( x )
#else
#define ASSERT( x )
#endif

typedef int Bool;
typedef char Str[ MAXCHAR ];

#endif