Advertisement
voidpointer

Untitled

May 13th, 2014
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.63 KB | None | 0 0
  1. // Unnamed namespace used to hide symbols from external translation units.
  2. namespace
  3. {
  4.    /// This padding value represents a left-shift in digits for the subcheck number.
  5.    /// When storing subchecks in transaction logs, we don't currently use a dedicated
  6.    /// parameter. So we do the following:
  7.    ///
  8.    ///    subchecknumber * SUBCHECK_INTEGER_PADDING + checknumber
  9.    ///
  10.    unsigned const SUBCHECK_INTEGER_PADDING = 1000;
  11.  
  12.    int CalcCheckNumber(CTransactionCheckParam const& check_param)
  13.    {
  14.       return check_param.SubCheckNumber * SUBCHECK_INTEGER_PADDING + check_param.CheckNumber;
  15.    }
  16.  
  17. } // end unnamed namespace
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement