The HR_FORMAT and HR_FORMAT_PARAMS macros are used to print out certain uniform values from a given HeapRegion instance. The first one constructs a format-string (which can be concatenated with other constant format strings, and the latter supplies the arguments to the format string and is used in the argument lists of print statments.
These macros are awkward to to use and should be replaced with a suitable service method in the HeapRegion class (either something like a to_string() or print_extended() method).
A couple of issues need to be resolved:
The current macros require no storage for the format string (it is a constant) and so any replacement should have a zero net effect on storage.
The current macros can be used in the midst of a larger print statement. It would be desirable to mainatin this feature. It makes the macros very easy to use.
These macros are awkward to to use and should be replaced with a suitable service method in the HeapRegion class (either something like a to_string() or print_extended() method).
A couple of issues need to be resolved:
The current macros require no storage for the format string (it is a constant) and so any replacement should have a zero net effect on storage.
The current macros can be used in the midst of a larger print statement. It would be desirable to mainatin this feature. It makes the macros very easy to use.