mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-03 03:01:44 +00:00
Initial checkin of unified hierarchy of WPILib 2015
This commit is contained in:
21
wpilibc/src/main/include/Base.h
Normal file
21
wpilibc/src/main/include/Base.h
Normal file
@@ -0,0 +1,21 @@
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Copyright (c) FIRST 2008. All Rights Reserved. */
|
||||
/* 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. */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef _BASE_H
|
||||
#define _BASE_H
|
||||
|
||||
// If don't have C++11, define constexpr as const for WindRiver
|
||||
#if __cplusplus < 201103L
|
||||
#define constexpr const
|
||||
#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&)
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user