Files
allwpilib/networktables/cpp/include/NTErrorBase.h
Tyler Veness fd4c169658 artf4149: Removed references to VxWorks
Implemented setTaskPriority() and getTaskPriority() in Task HAL API

Removed all other unimplemented functions in HAL and removed spawnTask()

Replaced instances of pthread_t* with TASK typedef

Removed unused HAL error constants and removed commented-out classes and functions in wpilibj's HALLibrary

Changed Task class API to match the construction semantics of a std::thread

Change-Id: I3bc951a3da90d24c5589fae4d1ca2bb60225c873
2015-07-20 11:49:29 -04:00

45 lines
1.5 KiB
C++

/*----------------------------------------------------------------------------*/
/* 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 WIN32
#include <semLib.h>
#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 // WIN32