/************************************************************************/
/* Copyright 1991, 1992 MBARI                                           */
/************************************************************************/
/* Summary  : General Purpose Constants                                  */
/* Filename : const.h                                                   */
/* Author   : Andrew Pearce                                             */
/* Project  : ROV 1.5                                                   */
/* Version  : Version 1.0                                               */
/* Created  : Unknown                                                   */
/* Modified : 04/08/92                                                  */
/* Archived :                                                           */
/************************************************************************/
/* Modification History:                                                */
/************************************************************************/

#ifndef FALSE
#define FALSE   0
#define TRUE    ~FALSE
#endif

#define ON      TRUE
#define OFF     FALSE

#define EQUAL    0                 /* strcmp returns 0 if strings match*/

#ifndef OK
#define OK       0
#endif
#ifndef ERROR
#define ERROR   -1
#endif

#ifndef min
#define min(a,b)        (a) < (b) ? (a) : (b)
#define max(a,b)        (a) > (b) ? (a) : (b)
#endif

#ifndef BIT
#define BIT(val, bit)    ((val & bit) == bit)
#endif

