#include <iostream>
#include <string.h>
#include <boost/detail/endian.hpp>
Go to the source code of this file.
Define Documentation
#define CheckError |
( |
|
err, |
|
|
|
what |
|
) |
| |
Value:if (err) { \
OSStatus error = static_cast<OSStatus>(err); \
char err_str[4]; \
strncpy (err_str, (char*)(&err), 4); \
std::cerr << what << std::endl; \
std::cerr << " Error# " << error << " ('" << err_str \
<< "')" << std::endl; \
std::cerr << " " << __FILE__ << ":" << __LINE__ << std::endl; \
fflush (stderr); \
}
#define CheckErrorAndThrow |
( |
|
err, |
|
|
|
what, |
|
|
|
throw_str |
|
) |
| |
Value:if (err) { \
OSStatus error = static_cast<OSStatus>(err); \
char err_str[4]; \
strncpy (err_str, (char*)(&err), 4); \
std::cerr << what << std::endl; \
std::cerr << " Error# " << error << " ('" << err_str \
<< "')" << std::endl; \
std::cerr << " " << __FILE__ << ":" << __LINE__ << std::endl; \
fflush (stderr); \
throw std::runtime_error (throw_str); \
}
#define GR_PCM_ENDIANNESS 0 |