this macro should be called `PMACC_GETFORWARDEDVALUE` or better `PMACC_GET_FORWARDED_VALUE` (to increase readability)

what are the `z` and `value_name` parameters for? it seems they are not used?