Skip to content

Registry API

terencehill requested to merge terencehill/registry_API into master

Improve the registry API:

  • REGISTRY_MAX(myreg) (replaces myreg_MAX)
  • REGISTRY_COUNT(myreg) (replaces myreg_COUNT)
  • REGISTRY_GET(myreg, i) (replaces myreg_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

Merge request reports