Browse Source

Common format for preprocessor #error messages.

Similarly to other compiler errors: first letter lowercase, no period
after.
pull/107/head
Vladimír Vondruš 11 years ago
parent
commit
5175805762
  1. 2
      doc/generated/shaders.cpp
  2. 2
      src/Magnum/BufferImage.h
  3. 2
      src/Magnum/BufferTexture.h
  4. 2
      src/Magnum/CubeMapTextureArray.h
  5. 2
      src/Magnum/Implementation/TransformFeedbackState.h
  6. 2
      src/Magnum/MultisampleTexture.h
  7. 2
      src/Magnum/Platform/AndroidApplication.h
  8. 4
      src/Magnum/Platform/Implementation/EglContextHandler.cpp
  9. 2
      src/Magnum/Platform/Implementation/GlxContextHandler.cpp
  10. 4
      src/Magnum/Platform/Implementation/OpenGLFunctionLoader.cpp
  11. 2
      src/Magnum/Platform/Implementation/OpenGLFunctionLoader.h
  12. 2
      src/Magnum/Platform/NaClApplication.h
  13. 2
      src/Magnum/Platform/Sdl2Application.cpp
  14. 2
      src/Magnum/Platform/WindowlessGlxApplication.cpp
  15. 4
      src/Magnum/Platform/magnum-info.cpp
  16. 2
      src/Magnum/PrimitiveQuery.h
  17. 2
      src/Magnum/RectangleTexture.h
  18. 2
      src/Magnum/Test/AbstractOpenGLTester.h
  19. 2
      src/Magnum/Text/fontconverter.cpp
  20. 2
      src/Magnum/TextureArray.h
  21. 2
      src/Magnum/TextureTools/distancefieldconverter.cpp
  22. 2
      src/Magnum/TransformFeedback.h

2
doc/generated/shaders.cpp

@ -33,7 +33,7 @@
#elif defined(CORRADE_TARGET_WINDOWS)
#include <Magnum/Platform/WindowlessWglApplication.h>
#else
#error No windowless application available on this platform
#error no windowless application available on this platform
#endif
#include <Magnum/Buffer.h>

2
src/Magnum/BufferImage.h

@ -141,7 +141,7 @@ template<UnsignedInt dimensions> inline BufferImage<dimensions>& BufferImage<dim
return *this;
}
#else
#error this header is available only on desktop OpenGL and OpenGL ES 3.0 build
#error this header is not available in OpenGL ES 2.0 build
#endif
}

2
src/Magnum/BufferTexture.h

@ -299,7 +299,7 @@ class MAGNUM_EXPORT BufferTexture: public AbstractTexture {
}
#else
#error this header is available only on desktop OpenGL build
#error this header is not available in OpenGL ES build
#endif
#endif

2
src/Magnum/CubeMapTextureArray.h

@ -503,7 +503,7 @@ class MAGNUM_EXPORT CubeMapTextureArray: public AbstractTexture {
}
#else
#error this header is available only on desktop OpenGL build
#error this header is not available in OpenGL ES build
#endif
#endif

2
src/Magnum/Implementation/TransformFeedbackState.h

@ -28,7 +28,7 @@
#include "Magnum/Context.h"
#ifdef MAGNUM_TARGET_GLES2
#error This header is not available in OpenGL ES 2.0 build.
#error this header is not available in OpenGL ES 2.0 build
#endif
namespace Magnum { namespace Implementation {

2
src/Magnum/MultisampleTexture.h

@ -226,7 +226,7 @@ typedef MultisampleTexture<3> MultisampleTexture2DArray;
}
#else
#error this header is available only on desktop OpenGL build
#error this header is not available in OpenGL ES 2.0 build
#endif
#endif

2
src/Magnum/Platform/AndroidApplication.h

@ -38,7 +38,7 @@
#include "Magnum/Platform/Platform.h"
#ifndef CORRADE_TARGET_ANDROID
#error This file is available only on Android
#error this file is available only on Android build
#endif
/* Undef Xlib nonsense which might get pulled in by EGL */

4
src/Magnum/Platform/Implementation/EglContextHandler.cpp

@ -73,7 +73,7 @@ VisualId EglContextHandler::getVisualId(EGLNativeDisplayType nativeDisplay) {
#elif defined(MAGNUM_TARGET_GLES2)
EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
#else
#error Unsupported OpenGL edition
#error unsupported OpenGL edition
#endif
EGL_NONE
};
@ -137,7 +137,7 @@ void EglContextHandler::createContext(const AbstractXApplication::Configuration&
#elif defined(MAGNUM_TARGET_GLES2)
attributes[1] = 2;
#else
#error Unsupported OpenGL ES version
#error unsupported OpenGL ES version
#endif
}
#endif

2
src/Magnum/Platform/Implementation/GlxContextHandler.cpp

@ -114,7 +114,7 @@ void GlxContextHandler::createContext(const AbstractXApplication::Configuration&
#elif defined(MAGNUM_TARGET_GLES2)
attributes[1] = 2;
#else
#error Unsupported OpenGL ES version
#error unsupported OpenGL ES version
#endif
attributes[2] = GLX_CONTEXT_MINOR_VERSION_ARB;
attributes[3] = 0;

4
src/Magnum/Platform/Implementation/OpenGLFunctionLoader.cpp

@ -48,7 +48,7 @@
/* Otherwise unsupported */
#else
#error Unsupported platform
#error unsupported platform
#endif
namespace Magnum { namespace Platform { namespace Implementation {
@ -108,7 +108,7 @@ auto OpenGLFunctionLoader::load(const char* const name) -> FunctionPointer {
/* Otherwise unsupported */
#else
#error Unsupported platform
#error unsupported platform
#endif
}}}

2
src/Magnum/Platform/Implementation/OpenGLFunctionLoader.h

@ -64,7 +64,7 @@ class OpenGLFunctionLoader {
/* Otherwise unsupported */
#else
#error Unsupported platform
#error unsupported platform
#endif
};

2
src/Magnum/Platform/NaClApplication.h

@ -53,7 +53,7 @@ namespace pp {
}
#ifndef CORRADE_TARGET_NACL
#error This header is available only on Google Chrome Native Client
#error this header is available only on Google Chrome Native Client build
#endif
namespace Magnum { namespace Platform {

2
src/Magnum/Platform/Sdl2Application.cpp

@ -148,7 +148,7 @@ bool Sdl2Application::tryCreateContext(const Configuration& configuration) {
#elif defined(MAGNUM_TARGET_GLES2)
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 2);
#else
#error Unsupported OpenGL ES version
#error unsupported OpenGL ES version
#endif
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 0);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_ES);

2
src/Magnum/Platform/WindowlessGlxApplication.cpp

@ -79,7 +79,7 @@ bool WindowlessGlxApplication::tryCreateContext(const Configuration&) {
#elif defined(MAGNUM_TARGET_GLES2)
GLX_CONTEXT_MAJOR_VERSION_ARB, 2,
#else
#error Unsupported OpenGL ES version
#error unsupported OpenGL ES version
#endif
GLX_CONTEXT_MINOR_VERSION_ARB, 0,
GLX_CONTEXT_PROFILE_MASK_ARB, GLX_CONTEXT_ES2_PROFILE_BIT_EXT,

4
src/Magnum/Platform/magnum-info.cpp

@ -65,7 +65,7 @@
#elif defined(CORRADE_TARGET_WINDOWS)
#include "Magnum/Platform/WindowlessWglApplication.h"
#else
#error No windowless application available on this platform
#error no windowless application available on this platform
#endif
namespace Magnum {
@ -170,7 +170,7 @@ MagnumInfo::MagnumInfo(const Arguments& arguments): Platform::WindowlessApplicat
#elif defined(CORRADE_TARGET_WINDOWS)
Debug() << "Used application: Platform::WindowlessWglApplication";
#else
#error No windowless application available on this platform
#error no windowless application available on this platform
#endif
Debug() << "Compilation flags:";
#ifdef CORRADE_GCC47_COMPATIBILITY

2
src/Magnum/PrimitiveQuery.h

@ -128,6 +128,8 @@ class PrimitiveQuery: public AbstractQuery {
};
}
#else
#error this header is not available in OpenGL ES 2.0 build
#endif
#endif

2
src/Magnum/RectangleTexture.h

@ -414,7 +414,7 @@ class MAGNUM_EXPORT RectangleTexture: public AbstractTexture {
}
#else
#error this header is available only on desktop OpenGL build
#error this header is not available in OpenGL ES build
#endif
#endif

2
src/Magnum/Test/AbstractOpenGLTester.h

@ -35,7 +35,7 @@
#if !defined(MAGNUM_TARGET_GLES) || defined(MAGNUM_TARGET_DESKTOP_GLES)
#include "Magnum/Platform/WindowlessGlxApplication.h"
#else
#error Cannot run OpenGL tests on this platform
#error cannot run OpenGL tests on this platform
#endif
namespace Magnum { namespace Test {

2
src/Magnum/Text/fontconverter.cpp

@ -39,7 +39,7 @@
#elif defined(CORRADE_TARGET_WINDOWS)
#include "Magnum/Platform/WindowlessWglApplication.h"
#else
#error No windowless application available on this platform
#error no windowless application available on this platform
#endif
#include "fontconverterConfigure.h"

2
src/Magnum/TextureArray.h

@ -562,7 +562,7 @@ typedef TextureArray<2> Texture2DArray;
}
#else
#error this header is not available on OpenGL ES 2.0 build
#error this header is not available in OpenGL ES 2.0 build
#endif
#endif

2
src/Magnum/TextureTools/distancefieldconverter.cpp

@ -45,7 +45,7 @@
#elif defined(CORRADE_TARGET_WINDOWS)
#include "Magnum/Platform/WindowlessWglApplication.h"
#else
#error No windowless application available on this platform
#error no windowless application available on this platform
#endif
#include "distancefieldconverterConfigure.h"

2
src/Magnum/TransformFeedback.h

@ -383,7 +383,7 @@ inline TransformFeedback& TransformFeedback::operator=(TransformFeedback&& other
}
#else
#error This header is not available in OpenGL ES 2.0 build.
#error this header is not available in OpenGL ES 2.0 build
#endif
#endif

Loading…
Cancel
Save