#include <iostream>
#include <string.h>
#include <boost/detail/endian.hpp>
Go to the source code of this file.
Define Documentation
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); \
}
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); \
}