EDIT: Doh, sorry, wrong subforum (was supposed to go into development general)

... maybe you could let users delete their own posts/threads? Anyway:
For the ml auto iso module, I'd like to use this...
.children = (struct menu_entry[]) {
{
.name = "Min. Av Shutter",
.priv = &m42_aiso_shutter,
[color=red].max = FASTEST_SHUTTER_SPEED_RAW/8-11,[/color]
.icon_type = IT_PERCENT,
.choices = CHOICES("OFF", "1/15", "1/30", "1/60", "1/125", "1/250", "1/500", "1/1000", "1/2000", "1/4000"),
.help = "Preferred shutter for Av mode (+/- 0.5 EV result).",
.help2 = "Selectable values starting from 1/15 in 1 EV steps.",
},
... problem is that FASTEST_SHUTTER_SPEED_RAW is a model-specific constant and I have to grab it with a getter function from the core code. But the menu struct stuff doesn't seem to accept any non-static values, any idea how to get around this?