mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
CMake Changes
This is the changes made by Patrick Plenefisch converting the native code to use CMake and the CMake Maven Plugin, as opposed to the native Maven plugin. This is to allow for compatibility with newer versions of the GCC toolchain. All the cpp sources were moved from maven style directories to cpp style directories for CMake. Change-Id: I67f5e3608948f37c83b0990d232105a3784f8593
This commit is contained in:
47
networktables/cpp/include/NTErrorBase.h
Normal file
47
networktables/cpp/include/NTErrorBase.h
Normal file
@@ -0,0 +1,47 @@
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* 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 _ERROR_BASE_H
|
||||
#define _ERROR_BASE_H
|
||||
|
||||
#if (defined __vxworks || defined WIN32)
|
||||
#include <semLib.h>
|
||||
#ifdef __vxworks
|
||||
#include <vxWorks.h>
|
||||
#endif
|
||||
|
||||
#define DISALLOW_COPY_AND_ASSIGN(ErrorBase)
|
||||
|
||||
#define wpi_setErrnoErrorWithContext(context)
|
||||
#define wpi_setErrnoError()
|
||||
#define wpi_setImaqErrorWithContext(code, context)
|
||||
#define wpi_setErrorWithContext(code, context)
|
||||
#define wpi_setError(code)
|
||||
#define wpi_setStaticErrorWithContext(object, code, context)
|
||||
#define wpi_setStaticError(object, code)
|
||||
#define wpi_setGlobalErrorWithContext(code, context)
|
||||
#define wpi_setGlobalError(code)
|
||||
#define wpi_setWPIErrorWithContext(error, context)
|
||||
#define wpi_setWPIError(error)
|
||||
#define wpi_setStaticWPIErrorWithContext(object, error, context)
|
||||
#define wpi_setStaticWPIError(object, error)
|
||||
#define wpi_setGlobalWPIErrorWithContext(error, context)
|
||||
#define wpi_setGlobalWPIError(error)
|
||||
|
||||
/**
|
||||
* Base class for most objects.
|
||||
* ErrorBase is the base class for most objects since it holds the generated error
|
||||
* for that object. In addition, there is a single instance of a global error object
|
||||
*/
|
||||
class ErrorBase
|
||||
{
|
||||
//TODO: Consider initializing instance variables and cleanup in destructor
|
||||
public:
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif // __vxworks
|
||||
Reference in New Issue
Block a user