2013-12-15 18:30:16 -05:00
|
|
|
/*----------------------------------------------------------------------------*/
|
2014-06-24 10:37:02 -07:00
|
|
|
/* Copyright (c) FIRST 2008. All Rights Reserved. */
|
2013-12-15 18:30:16 -05:00
|
|
|
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
|
|
|
|
/* must be accompanied by the FIRST BSD license file in $(WIND_BASE)/WPILib. */
|
|
|
|
|
/*----------------------------------------------------------------------------*/
|
2014-05-02 17:54:01 -04:00
|
|
|
#pragma once
|
2013-12-15 18:30:16 -05:00
|
|
|
|
|
|
|
|
// If don't have C++11, define constexpr as const for WindRiver
|
|
|
|
|
#if __cplusplus < 201103L
|
|
|
|
|
#define constexpr const
|
2014-05-02 17:54:01 -04:00
|
|
|
#define nullptr NULL
|
2013-12-15 18:30:16 -05:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
// A macro to disallow the copy constructor and operator= functions
|
|
|
|
|
// This should be used in the private: declarations for a class
|
|
|
|
|
#define DISALLOW_COPY_AND_ASSIGN(TypeName) \
|
|
|
|
|
TypeName(const TypeName&); \
|
|
|
|
|
void operator=(const TypeName&)
|
2014-06-24 10:37:02 -07:00
|
|
|
|