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 <email@example.com>
To: Bruce Wampler <firstname.lastname@example.org>
Cc: VGUI discuss <email@example.com>
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 firstname.lastname@example.org
|with a subject of "unsubscribe". Trouble? Contact email@example.com