Re: some problems with vPopupMenu
Perhaps a better method is to define these constants as static member constants of their respective classes. They will then only be known within their own scope.
static const short MAX_MENU_BUTTONS;
const short vMenu::MAX_MENU_BUTTONS = 20;
From: Jonathan B. Hacker <firstname.lastname@example.org>
To: Bruce Wampler <email@example.com>
Cc: VGUI discuss <firstname.lastname@example.org>
Date: Friday, February 12, 1999 11:07 AM
Subject: some problems with vPopupMenu
|I've run into the following minor issues with the new vPopupMenu class.
|1) in popmenu.h VMENU_H conflicts with the variable of the same
|name in menu.h. I changed it to VPOPMENU_H
|2) in popmenu.h MAX_MENU_BUTTONS conflicts with the variable of
|the same name in menu.h. I changed it to MAX_POPMENU_BUTTONS
|To UNSUBSCRIBE, email to email@example.com
|with a subject of "unsubscribe". Trouble? Contact firstname.lastname@example.org