${__SECTION__} in hidden section
In a hidden section but having a name with a '-' prefix, macro __SECTION__ is defined but empty
Could you change this so it contains the name of the section, without any prefixes ? (as documented)
Section "-Test"
!ifdef __SECTION__
!error "Defined: ${__SECTION__}"
!endif
EndSection