namespace for allegro
Brought to you by:
openlayer
I'm trying to use OpenLayer now. It's amazing. But I
have a suggestiong for you. Why don't you add a name
space to allegro in you Include.hpp like this:
namespace alleg
{
#include <allegro.h>
}
and inside your c++ file before every allegro function
add alleg::. There will be great to sovle a lot of name
clash problem.
Logged In: YES
user_id=1287577
The problem is that so many parts of Allegro have been made
with macros which don't care about namespaces. And I'm not
sure if code inside extern "C" blocks allow for using C++
features like namespaces. Otherwise I'd do that right away :)