Paste #126477

   
pasted on 02.09.2019 20:04
  • Edit to this paste
  • Print
  • Raw
  • The following pastes replied to this paste:  # 140614 # 163274 # 168893
  • Show paste tree
  • Compare with paste
    #  
  • Toggle line numbers
  • Syntax highlighting  
Text paste
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
#define STRAIT_BOARD(first, second, last) \
	constexpr uint32_t straitBoard_##first##_##last = static_cast< uint32_t >( Card::valCard::_##first ) |\
										static_cast< uint32_t >( Card::valCard::_##second ) |\
										static_cast< uint32_t >( Card::valCard::_##last )
			
			STRAIT_BOARD(3, 4, 5);
			STRAIT_BOARD(4, 5, 6);
			STRAIT_BOARD(5, 6, 7);
			STRAIT_BOARD(6, 7, 8);
			STRAIT_BOARD(7, 8, 9);
			STRAIT_BOARD(8, 9, T);
			STRAIT_BOARD(9, T, J);
			STRAIT_BOARD(T, J, Q);
Add Comment
Author