senfscons: Fix 'Object' build helper to work with empty source list in SCons 0.96.1
[senf.git] / Packets / PacketParser.mpp
index d445ebf..c9c112e 100644 (file)
          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)                                            \
      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) ;                                                         \
          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)                                     \
      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