fixed FILTER_END bug
parent
9ffe5ae035
commit
5ed4a7daec
|
|
@ -145,7 +145,7 @@ unsigned int MeterFilter::Put2(const byte *begin, unsigned int length, int messa
|
||||||
}
|
}
|
||||||
|
|
||||||
FILTER_OUTPUT(1, begin, length, messageEnd);
|
FILTER_OUTPUT(1, begin, length, messageEnd);
|
||||||
FILTER_END;
|
FILTER_END_NO_MESSAGE_END;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool MeterFilter::IsolatedMessageSeriesEnd(bool blocking)
|
bool MeterFilter::IsolatedMessageSeriesEnd(bool blocking)
|
||||||
|
|
|
||||||
|
|
@ -17,11 +17,13 @@
|
||||||
FILTER_END_NO_MESSAGE_END_NO_RETURN \
|
FILTER_END_NO_MESSAGE_END_NO_RETURN \
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
/*
|
||||||
#define FILTER_END \
|
#define FILTER_END \
|
||||||
case -1: \
|
case -1: \
|
||||||
if (Output(-1, NULL, 0, messageEnd, blocking)) \
|
if (messageEnd && Output(-1, NULL, 0, messageEnd, blocking)) \
|
||||||
return 1; \
|
return 1; \
|
||||||
FILTER_END_NO_MESSAGE_END
|
FILTER_END_NO_MESSAGE_END
|
||||||
|
*/
|
||||||
|
|
||||||
#define FILTER_OUTPUT2(site, statement, output, length, messageEnd) \
|
#define FILTER_OUTPUT2(site, statement, output, length, messageEnd) \
|
||||||
{\
|
{\
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue