Index: src/macros.h ================================================================== --- src/macros.h +++ src/macros.h @@ -315,10 +315,18 @@ OF_HASH_ADD(hash, (int64Copy >> 24) & 0xFF); \ OF_HASH_ADD(hash, (int64Copy >> 16) & 0xFF); \ OF_HASH_ADD(hash, (int64Copy >> 8) & 0xFF); \ OF_HASH_ADD(hash, int64Copy & 0xFF); \ } + +static OF_INLINE of_range_t +of_range(size_t start, size_t length) +{ + of_range_t range = { start, length }; + + return range; +} static OF_INLINE of_point_t of_point(int x, int y) { of_point_t point = { x, y };