Global pointer to the most recent activated menu. allegro game programming library.
#include <allegro.h>
extern MENU *active_menu;
When a menu callback procedure is triggered, this will be set to the menu item that was selected, so your routine can determine where it was called from.
, exgui(3alleg4)