@elextr So GBO is for the old menu commands (before your work to make them very flexible). GeanyBuildType is a list of IDs corresponding to those commands.
However, the GBO_TO_ macros accept values >= GEANY_GBO_COUNT, so it seems the macros take something more than an old command ID. I'm not sure what those larger values would be, could you explain please?