- fixed Buffer for PROCESSOR_BUFFER_USE_EXCEPTIONS not defined
git-svn-id: http://moon:8086/svn/software/trunk/libsrc/cpp@1044 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
@@ -6,10 +6,11 @@
|
||||
#include <exception>
|
||||
#include <algorithm>
|
||||
|
||||
#define EXC_MSG(code) (std::string(__PRETTY_FUNCTION__) + ", line " + std::to_string(__LINE__) + ", code " + std::to_string(code))
|
||||
#define EXC_MSG(code) (std::string(__PRETTY_FUNCTION__) + ", line " + std::to_string(__LINE__) + ", code " + std::to_string(code))
|
||||
#define EXC_EXCEPT(code) throw Buffer::Exception(EXC_MSG(code))
|
||||
|
||||
#ifdef PROCESSOR_BUFFER_USE_EXCEPTIONS
|
||||
#define RETURN_OR_EXCEPT(code) throw Buffer::Exception(EXC_MSG(code))
|
||||
#define RETURN_OR_EXCEPT(code) EXC_EXCEPT(code)
|
||||
#else
|
||||
#define RETURN_OR_EXCEPT(code) return code
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user