why is sim_addr_range_hit_p tagged inline?
DJ Delorie
dj@redhat.com
Thu Nov 13 20:30:00 GMT 2014
In sim/sim-arange.h:
/* Return non-zero if ADDR is in range AR, traversing the entire tree.
If no range is specified, that is defined to mean "everything". */
extern INLINE int
sim_addr_range_hit_p (ADDR_RANGE * /*ar*/, address_word /*addr*/);
#define ADDR_RANGE_HIT_P(ar, addr) \
((ar)->range_tree == NULL || sim_addr_range_hit_p ((ar), (addr)))
Why is the INLINE there? sim_addr_range_hit_p() is only defined in
sim-arange.c
More information about the Gdb
mailing list