/* defs.h
 */


#ifndef DEFS_H
#define DEFS_H

#define MIN(a,b) ((a) < (b) ? (a) : (b)) // minimum of a and b

// For Sections:

typedef enum { RED, YELLOW, GREEN } SectionStatus;
typedef enum { MAIN, SWITCH, SIDING } SectionType;

// For Trains:

typedef enum { ARRIVING, WAITING, LEAVING } PlatformStatus;

#endif
