X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FPacketParser.mpp;h=c9c112e0c897f68094b495e3432566e8c274e420;hb=9bfe0b87be0926193b5baf13865cf045f0de0b0d;hp=d445ebfdf14e6d48e588ebd557b06916789c3db7;hpb=2c10a733c69cd95e10a312a471c84d07d52b7755;p=senf.git diff --git a/Packets/PacketParser.mpp b/Packets/PacketParser.mpp index d445ebf..c9c112e 100644 --- a/Packets/PacketParser.mpp +++ b/Packets/PacketParser.mpp @@ -101,7 +101,7 @@ return BOOST_PP_CAT(offset_,BOOST_PP_CAT(n,_)) () + senf::bytes( name () ); \ } \ size_type BOOST_PP_CAT(name, _offset) () const { \ - return BOOST_PP_CAT(offset_,BOOST_PP_CAT(BOOST_PP_INC(n),_)) () ; \ + return BOOST_PP_CAT(offset_,BOOST_PP_CAT(n,_)) () ; \ } # # define SENF_PACKET_PARSER_I_FIXED_Field(n,name,type) \ @@ -112,7 +112,7 @@ static const size_type BOOST_PP_CAT(offset_,BOOST_PP_CAT(BOOST_PP_INC(n),_)) = \ BOOST_PP_CAT(offset_,BOOST_PP_CAT(n,_)) + type::fixed_bytes; \ static const size_type BOOST_PP_CAT(name,_offset) = \ - BOOST_PP_CAT(offset_,BOOST_PP_CAT(BOOST_PP_INC(n),_)); + BOOST_PP_CAT(offset_,BOOST_PP_CAT(n,_)); # # define SENF_PACKET_PARSER_I_OverlayField(n,name,type) \ typedef type BOOST_PP_CAT(name,_t) ; \ @@ -123,7 +123,7 @@ return BOOST_PP_CAT(offset_,BOOST_PP_CAT(n,_)) (); \ } \ size_type BOOST_PP_CAT(name, _offset) () const { \ - return BOOST_PP_CAT(offset_,BOOST_PP_CAT(BOOST_PP_INC(n),_)) () ; \ + return BOOST_PP_CAT(offset_,BOOST_PP_CAT(n,_)) () ; \ } # # define SENF_PACKET_PARSER_I_FIXED_OverlayField(n,name,type) \ @@ -134,7 +134,7 @@ static const size_type BOOST_PP_CAT(offset_,BOOST_PP_CAT(BOOST_PP_INC(n),_)) = \ BOOST_PP_CAT(offset_,BOOST_PP_CAT(n,_)); \ static const size_type BOOST_PP_CAT(name,_offset) = \ - BOOST_PP_CAT(offset_,BOOST_PP_CAT(BOOST_PP_INC(n),_)); + BOOST_PP_CAT(offset_,BOOST_PP_CAT(n,_)); # # ///////////////////////////////mpp.e/////////////////////////////////////// # endif