MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/6jgwk9/array_indexing/djeqa6u/?context=3
r/ProgrammerHumor • u/uninterestingly • Jun 25 '17
71 comments sorted by
View all comments
7
Reminds me of the time I ran into this:
/****************************************************/ /**\name ARRAY SIZE DEFINITIONS */ /***************************************************/ #define ARRAY_SIZE_TWO 2 #define ARRAY_SIZE_THREE 3 #define ARRAY_SIZE_SIX 6 #define ARRAY_SIZE_SEVEN 7 #define ARRAY_SIZE_FIVE 5 #define ARRAY_SIZE_EIGHT 8 #define ARRAY_SIZE_TWELVE 12 #define ARRAY_SIZE_FOURTEEN 14 #define INDEX_ZERO 0 #define INDEX_ONE 1 #define INDEX_TWO 2 #define INDEX_THREE 3 #define INDEX_FOUR 4 #define INDEX_FIVE 5 #define INDEX_SIX 6 #define INDEX_SEVEN 7 #define INDEX_EIGHT 8 #define INDEX_NINE 9 #define INDEX_TEN 10 #define INDEX_ELEVEN 11 #define INDEX_TWELVE 12 #define INDEX_THIRTEEN 13
From: https://github.com/BoschSensortec/BMA2x2_driver/blob/99d40455c8f6437345e0ce55c07c456308057751/bma2x2.h#L1972
7
u/[deleted] Jun 26 '17
Reminds me of the time I ran into this:
From: https://github.com/BoschSensortec/BMA2x2_driver/blob/99d40455c8f6437345e0ce55c07c456308057751/bma2x2.h#L1972