Explorar o código

LOGDEBUGF -> URHO3D_LOGDEBUGF

Ivan K %!s(int64=10) %!d(string=hai) anos
pai
achega
c9a77c8d56

+ 2 - 2
Source/Urho3D/Engine/Engine.cpp

@@ -269,7 +269,7 @@ bool Engine::Initialize(const VariantMap& parameters)
             }
         }
         else
-            LOGDEBUGF(
+            URHO3D_LOGDEBUGF(
                 "Skip specified resource package '%s' as it does not exist, check the documentation on how to set the 'resource prefix path'",
                 resourcePackages[i].CString());
     }
@@ -322,7 +322,7 @@ bool Engine::Initialize(const VariantMap& parameters)
             }
         }
         else
-            LOGDEBUGF(
+            URHO3D_LOGDEBUGF(
                 "Skipped autoload path '%s' as it does not exist, check the documentation on how to set the 'resource prefix path'",
                 autoLoadPaths[i].CString());
     }

+ 2 - 2
Source/Urho3D/Graphics/Direct3D11/D3D11Graphics.cpp

@@ -1868,7 +1868,7 @@ void Graphics::WindowResized()
     // Reset rendertargets and viewport for the new screen size
     ResetRenderTargets();
 
-    LOGDEBUGF("Window was resized to %dx%d", width_, height_);
+    URHO3D_LOGDEBUGF("Window was resized to %dx%d", width_, height_);
 
     using namespace ScreenMode;
 
@@ -1895,7 +1895,7 @@ void Graphics::WindowMoved()
     position_.x_ = newX;
     position_.y_ = newY;
 
-    LOGDEBUGF("Window was moved to %d,%d", position_.x_, position_.y_);
+    URHO3D_LOGDEBUGF("Window was moved to %d,%d", position_.x_, position_.y_);
 
     using namespace WindowPos;
 

+ 2 - 2
Source/Urho3D/Graphics/Direct3D9/D3D9Graphics.cpp

@@ -2062,7 +2062,7 @@ void Graphics::WindowResized()
     // Reset rendertargets and viewport for the new screen size
     ResetRenderTargets();
 
-    LOGDEBUGF("Window was resized to %dx%d", width_, height_);
+    URHO3D_LOGDEBUGF("Window was resized to %dx%d", width_, height_);
 
     using namespace ScreenMode;
 
@@ -2089,7 +2089,7 @@ void Graphics::WindowMoved()
     position_.x_ = newX;
     position_.y_ = newY;
 
-    LOGDEBUGF("Window was moved to %d,%d", position_.x_, position_.y_);
+    URHO3D_LOGDEBUGF("Window was moved to %d,%d", position_.x_, position_.y_);
 
     using namespace WindowPos;
 

+ 2 - 2
Source/Urho3D/Graphics/OpenGL/OGLGraphics.cpp

@@ -2143,7 +2143,7 @@ void Graphics::WindowResized()
     CleanupFramebuffers();
     ResetRenderTargets();
 
-    LOGDEBUGF("Window was resized to %dx%d", width_, height_);
+    URHO3D_LOGDEBUGF("Window was resized to %dx%d", width_, height_);
 
     using namespace ScreenMode;
 
@@ -2170,7 +2170,7 @@ void Graphics::WindowMoved()
     position_.x_ = newX;
     position_.y_ = newY;
 
-    LOGDEBUGF("Window was moved to %d,%d", position_.x_, position_.y_);
+    URHO3D_LOGDEBUGF("Window was moved to %d,%d", position_.x_, position_.y_);
 
     using namespace WindowPos;
 

+ 2 - 2
Source/Urho3D/IO/Log.h

@@ -136,7 +136,7 @@ private:
 #define URHO3D_LOGWARNING(message) Urho3D::Log::Write(Urho3D::LOG_WARNING, message)
 #define URHO3D_LOGERROR(message) Urho3D::Log::Write(Urho3D::LOG_ERROR, message)
 #define URHO3D_LOGRAW(message) Urho3D::Log::WriteRaw(message)
-#define LOGDEBUGF(format, ...) Urho3D::Log::Write(Urho3D::LOG_DEBUG, Urho3D::ToString(format, ##__VA_ARGS__))
+#define URHO3D_LOGDEBUGF(format, ...) Urho3D::Log::Write(Urho3D::LOG_DEBUG, Urho3D::ToString(format, ##__VA_ARGS__))
 #define LOGINFOF(format, ...) Urho3D::Log::Write(Urho3D::LOG_INFO, Urho3D::ToString(format, ##__VA_ARGS__))
 #define LOGWARNINGF(format, ...) Urho3D::Log::Write(Urho3D::LOG_WARNING, Urho3D::ToString(format, ##__VA_ARGS__))
 #define LOGERRORF(format, ...) Urho3D::Log::Write(Urho3D::LOG_ERROR, Urho3D::ToString(format, ##__VA_ARGS__))
@@ -147,7 +147,7 @@ private:
 #define URHO3D_LOGWARNING(message) ((void)0)
 #define URHO3D_LOGERROR(message) ((void)0)
 #define URHO3D_LOGRAW(message) ((void)0)
-#define LOGDEBUGF(...) ((void)0)
+#define URHO3D_LOGDEBUGF(...) ((void)0)
 #define LOGINFOF(...) ((void)0)
 #define LOGWARNINGF(...) ((void)0)
 #define LOGERRORF(...) ((void)0)

+ 1 - 1
Source/Urho3D/UI/FontFaceBitmap.cpp

@@ -160,7 +160,7 @@ bool FontFaceBitmap::Load(const unsigned char* fontData, unsigned fontDataSize,
         }
     }
 
-    LOGDEBUGF("Bitmap font face %s has %d glyphs", GetFileName(font_->GetName()).CString(), count);
+    URHO3D_LOGDEBUGF("Bitmap font face %s has %d glyphs", GetFileName(font_->GetName()).CString(), count);
 
     font_->SetMemoryUse(font_->GetMemoryUse() + totalTextureSize);
     return true;

+ 1 - 1
Source/Urho3D/UI/FontFaceFreeType.cpp

@@ -138,7 +138,7 @@ bool FontFaceFreeType::Load(const unsigned char* fontData, unsigned fontDataSize
     face_ = face;
 
     unsigned numGlyphs = (unsigned)face->num_glyphs;
-    LOGDEBUGF("Font face %s (%dpt) has %d glyphs", GetFileName(font_->GetName()).CString(), pointSize, numGlyphs);
+    URHO3D_LOGDEBUGF("Font face %s (%dpt) has %d glyphs", GetFileName(font_->GetName()).CString(), pointSize, numGlyphs);
 
     PODVector<unsigned> charCodes(numGlyphs);
     for (unsigned i = 0; i < numGlyphs; ++i)