Registry API
Improve the registry API:
-
REGISTRY_MAX(myreg)
(replacesmyreg_MAX
) -
REGISTRY_COUNT(myreg)
(replacesmyreg_COUNT
) -
REGISTRY_GET(myreg, i)
(replacesmyreg_from(i)
)
Using directly *_MAX
, *_COUNT
and *_from(i)
isn't ideal since their definitions are hidden among obscure macros, particularly it's hard to understand what the *_from
macro returns given their cryptic names.
Edited by terencehill