Simplify KEY_IN_RANGE macro
This commit is contained in:
parent
8409df447d
commit
9a7959ff4c
1 changed files with 1 additions and 11 deletions
|
@ -46,14 +46,4 @@
|
|||
(Key < Range#btree_range.to_key)))).
|
||||
|
||||
-define(KEY_IN_RANGE(Key,Range),
|
||||
((Range#btree_range.from_inclusive andalso
|
||||
(Range#btree_range.from_key =< Key))
|
||||
orelse
|
||||
(Range#btree_range.from_key < Key))
|
||||
andalso
|
||||
((Range#btree_range.to_key == undefined)
|
||||
orelse
|
||||
((Range#btree_range.to_inclusive andalso
|
||||
(Key =< Range#btree_range.to_key))
|
||||
orelse
|
||||
(Key < Range#btree_range.to_key)))).
|
||||
(?KEY_IN_FROM_RANGE(Key,Range) andalso ?KEY_IN_TO_RANGE(Key,Range))).
|
||||
|
|
Loading…
Reference in a new issue