[AD] allegro.log in release mode |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: "'Allegro Development'" <alleg-developers@xxxxxxxxxx>
- Subject: [AD] allegro.log in release mode
- From: "Trent Gamblin" <trent@xxxxxxxxxx>
- Date: Fri, 6 Feb 2015 19:34:28 -0700
- Thread-index: AdBCfirQksRh4ZZhRb2vgQ/1sGg8rw==
This came up before but I don't remember what was done or planned about it.
I'd like to be able to call al_enable_logging(bool) and enable logging in
release mode (or disable it in debug mode if you wanted to...)
Is the slight overhead of an if statement for every ALLEGRO_DEBUG (etc) call
too much? Should it be hidden behind a second preprocessor directive so
al_enable_logging would only work if Allegro was compiled that way (might be
confusing)?
Anybody have any suggestions that came up before before I start?
Trent