Author: mordante
Date: Sun Sep 28 18:53:39 2008
New Revision: 29748

URL: http://svn.gna.org/viewcvs/wesnoth?rev=29748&view=rev
Log:
Replace __FUNCTION__ with __func__.

__FUNCTION__ doesn't compile with suncc and __func__ does. The problem
was discovered by Pietro_S.

Modified:
    trunk/src/editor2/editor_common.hpp
    trunk/src/editor2/editor_controller.cpp

Modified: trunk/src/editor2/editor_common.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/editor2/editor_common.hpp?rev=29748&r1=29747&r2=29748&view=diff
==============================================================================
--- trunk/src/editor2/editor_common.hpp (original)
+++ trunk/src/editor2/editor_common.hpp Sun Sep 28 18:53:39 2008
@@ -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;

Modified: trunk/src/editor2/editor_controller.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/editor2/editor_controller.cpp?rev=29748&r1=29747&r2=29748&view=diff
==============================================================================
--- trunk/src/editor2/editor_controller.cpp (original)
+++ trunk/src/editor2/editor_controller.cpp Sun Sep 28 18:53:39 2008
@@ -826,7 +826,7 @@
 
 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 @@
 
 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);


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to