use epics_throws macro

This commit is contained in:
Jeff Hill
2002-10-25 00:11:12 +00:00
parent 3e884afdff
commit 2011c3c7ba
26 changed files with 243 additions and 244 deletions

View File

@@ -32,7 +32,7 @@
#include "comBuf.h"
#include "errlog.h"
bool comBuf::flushToWire ( wireSendAdapter & wire ) throw ()
bool comBuf::flushToWire ( wireSendAdapter & wire ) epics_throws (())
{
unsigned occupied = this->occupiedBytes ();
while ( occupied ) {
@@ -47,7 +47,7 @@ bool comBuf::flushToWire ( wireSendAdapter & wire ) throw ()
return true;
}
unsigned comBuf::push ( const epicsInt16 * pValue, unsigned nElem ) throw ()
unsigned comBuf::push ( const epicsInt16 * pValue, unsigned nElem ) epics_throws (())
{
nElem = this->unoccupiedElem ( sizeof (*pValue), nElem );
for ( unsigned i = 0u; i < nElem; i++ ) {
@@ -59,7 +59,7 @@ unsigned comBuf::push ( const epicsInt16 * pValue, unsigned nElem ) throw ()
return nElem;
}
unsigned comBuf::push ( const epicsUInt16 * pValue, unsigned nElem ) throw ()
unsigned comBuf::push ( const epicsUInt16 * pValue, unsigned nElem ) epics_throws (())
{
nElem = this->unoccupiedElem ( sizeof (*pValue), nElem );
for ( unsigned i = 0u; i < nElem; i++ ) {
@@ -71,7 +71,7 @@ unsigned comBuf::push ( const epicsUInt16 * pValue, unsigned nElem ) throw ()
return nElem;
}
unsigned comBuf::push ( const epicsInt32 * pValue, unsigned nElem ) throw ()
unsigned comBuf::push ( const epicsInt32 * pValue, unsigned nElem ) epics_throws (())
{
nElem = this->unoccupiedElem ( sizeof (*pValue), nElem );
for ( unsigned i = 0u; i < nElem; i++ ) {
@@ -87,7 +87,7 @@ unsigned comBuf::push ( const epicsInt32 * pValue, unsigned nElem ) throw ()
return nElem;
}
unsigned comBuf::push ( const epicsUInt32 * pValue, unsigned nElem ) throw ()
unsigned comBuf::push ( const epicsUInt32 * pValue, unsigned nElem ) epics_throws (())
{
nElem = this->unoccupiedElem ( sizeof (*pValue), nElem );
for ( unsigned i = 0u; i < nElem; i++ ) {
@@ -103,7 +103,7 @@ unsigned comBuf::push ( const epicsUInt32 * pValue, unsigned nElem ) throw ()
return nElem;
}
unsigned comBuf::push ( const epicsFloat32 * pValue, unsigned nElem ) throw ()
unsigned comBuf::push ( const epicsFloat32 * pValue, unsigned nElem ) epics_throws (())
{
nElem = this->unoccupiedElem ( sizeof (*pValue), nElem );
for ( unsigned i = 0u; i < nElem; i++ ) {
@@ -114,7 +114,7 @@ unsigned comBuf::push ( const epicsFloat32 * pValue, unsigned nElem ) throw ()
return nElem;
}
unsigned comBuf::push ( const epicsFloat64 * pValue, unsigned nElem ) throw ()
unsigned comBuf::push ( const epicsFloat64 * pValue, unsigned nElem ) epics_throws (())
{
nElem = this->unoccupiedElem ( sizeof (*pValue), nElem );
for ( unsigned i = 0u; i < nElem; i++ ) {
@@ -128,13 +128,12 @@ unsigned comBuf::push ( const epicsFloat64 * pValue, unsigned nElem ) throw ()
// throwing the exception from a function that isnt inline
// shrinks the GNU compiled object code
void comBuf::throwInsufficentBytesException ()
throw ( insufficentBytesAvailable )
epics_throws (( insufficentBytesAvailable ))
{
throw insufficentBytesAvailable ();
}
void comBuf::operator delete ( void *pCadaver )
throw ( std::logic_error )
{
// Visual C++ .net appears to require operator delete if
// placement operator delete is defined? I smell a ms rat