- fixed exeptions

git-svn-id: http://moon:8086/svn/software/trunk/libsrc/cpp@1068 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2022-06-24 08:52:12 +00:00
parent 6f93260ca1
commit 5bab8d67b3
2 changed files with 4 additions and 4 deletions
+4 -3
View File
@@ -2,7 +2,7 @@
#define __RADIO_BLOCK_H__ #define __RADIO_BLOCK_H__
#include <forward_list> #include <forward_list>
#include <exception> #include "Exception.hpp"
#include "Buffer.hpp" #include "Buffer.hpp"
namespace Processor namespace Processor
@@ -23,6 +23,7 @@ class Block
virtual ~Block() = default; virtual ~Block() = default;
virtual void process() = 0; virtual void process() = 0;
virtual void prepare() {}
size_t num_in() const size_t num_in() const
{ {
@@ -54,7 +55,7 @@ class Block
} }
if (!buf) if (!buf)
{ {
throw Exception("buffer_in() failed!"); EXC_EXCEPT(-1);
} }
return buf; return buf;
} }
@@ -69,7 +70,7 @@ class Block
} }
if (!buf) if (!buf)
{ {
throw Exception("buffer_out() failed!"); EXC_EXCEPT(-1);
} }
return buf; return buf;
} }
-1
View File
@@ -3,7 +3,6 @@
#include <stddef.h> #include <stddef.h>
#include <string.h> #include <string.h>
#include <exception>
#include <algorithm> #include <algorithm>
#include "Exception.hpp" #include "Exception.hpp"