Replace __FUNCTION__ with __func__.
__FUNCTION__ doesn't compile with suncc and __func__ does. The problem was discovered by Pietro_S.
This commit is contained in:
parent
a515cc1d6d
commit
d2a6e86be1
2 changed files with 3 additions and 3 deletions
|
@ -28,7 +28,7 @@
|
|||
#define LOG_ED LOG_STREAM_INDENT(info, editor)
|
||||
#define WRN_ED LOG_STREAM_INDENT(warn, editor)
|
||||
#define ERR_ED LOG_STREAM_INDENT(err, editor)
|
||||
#define SCOPE_ED log_scope2(editor, __FUNCTION__)
|
||||
#define SCOPE_ED log_scope2(editor, __func__)
|
||||
|
||||
class display;
|
||||
class gamemap;
|
||||
|
|
|
@ -826,7 +826,7 @@ void editor_controller::show_menu(const std::vector<std::string>& items_arg, int
|
|||
|
||||
void editor_controller::cycle_brush()
|
||||
{
|
||||
DBG_ED << __FUNCTION__ << "\n";
|
||||
DBG_ED << __func__ << "\n";
|
||||
if (brush_ == &brushes_.back()) {
|
||||
brush_ = &brushes_.front();
|
||||
} else {
|
||||
|
@ -895,7 +895,7 @@ bool editor_controller::is_mouse_action_set(hotkey::HOTKEY_COMMAND command) cons
|
|||
|
||||
void editor_controller::update_mouse_action_highlights()
|
||||
{
|
||||
DBG_ED << __FUNCTION__ << "\n";
|
||||
DBG_ED << __func__ << "\n";
|
||||
int x, y;
|
||||
SDL_GetMouseState(&x, &y);
|
||||
gamemap::location hex_clicked = gui().hex_clicked_on(x,y);
|
||||
|
|
Loading…
Add table
Reference in a new issue