diff --git a/doc/generated/shaders.cpp b/doc/generated/shaders.cpp index 743a2a809..8e6aaf4ca 100644 --- a/doc/generated/shaders.cpp +++ b/doc/generated/shaders.cpp @@ -33,7 +33,7 @@ #elif defined(CORRADE_TARGET_WINDOWS) #include #else -#error No windowless application available on this platform +#error no windowless application available on this platform #endif #include diff --git a/src/Magnum/BufferImage.h b/src/Magnum/BufferImage.h index 400b2eda5..9a70c74a3 100644 --- a/src/Magnum/BufferImage.h +++ b/src/Magnum/BufferImage.h @@ -141,7 +141,7 @@ template inline BufferImage& BufferImage 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 diff --git a/src/Magnum/Platform/AndroidApplication.h b/src/Magnum/Platform/AndroidApplication.h index aa96ca5b6..00b869e47 100644 --- a/src/Magnum/Platform/AndroidApplication.h +++ b/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 */ diff --git a/src/Magnum/Platform/Implementation/EglContextHandler.cpp b/src/Magnum/Platform/Implementation/EglContextHandler.cpp index 8b3442cca..42d7d6997 100644 --- a/src/Magnum/Platform/Implementation/EglContextHandler.cpp +++ b/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 diff --git a/src/Magnum/Platform/Implementation/GlxContextHandler.cpp b/src/Magnum/Platform/Implementation/GlxContextHandler.cpp index 4ba23bfc7..6a2265610 100644 --- a/src/Magnum/Platform/Implementation/GlxContextHandler.cpp +++ b/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; diff --git a/src/Magnum/Platform/Implementation/OpenGLFunctionLoader.cpp b/src/Magnum/Platform/Implementation/OpenGLFunctionLoader.cpp index 7a58a698d..4a4a7cd54 100644 --- a/src/Magnum/Platform/Implementation/OpenGLFunctionLoader.cpp +++ b/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 }}} diff --git a/src/Magnum/Platform/Implementation/OpenGLFunctionLoader.h b/src/Magnum/Platform/Implementation/OpenGLFunctionLoader.h index f88605ed1..2d89eb37d 100644 --- a/src/Magnum/Platform/Implementation/OpenGLFunctionLoader.h +++ b/src/Magnum/Platform/Implementation/OpenGLFunctionLoader.h @@ -64,7 +64,7 @@ class OpenGLFunctionLoader { /* Otherwise unsupported */ #else - #error Unsupported platform + #error unsupported platform #endif }; diff --git a/src/Magnum/Platform/NaClApplication.h b/src/Magnum/Platform/NaClApplication.h index 8c874081a..600de68a5 100644 --- a/src/Magnum/Platform/NaClApplication.h +++ b/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 { diff --git a/src/Magnum/Platform/Sdl2Application.cpp b/src/Magnum/Platform/Sdl2Application.cpp index 30d0bb8b1..1ee227793 100644 --- a/src/Magnum/Platform/Sdl2Application.cpp +++ b/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); diff --git a/src/Magnum/Platform/WindowlessGlxApplication.cpp b/src/Magnum/Platform/WindowlessGlxApplication.cpp index bd5827113..372be34b7 100644 --- a/src/Magnum/Platform/WindowlessGlxApplication.cpp +++ b/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, diff --git a/src/Magnum/Platform/magnum-info.cpp b/src/Magnum/Platform/magnum-info.cpp index 120b129dc..2feb77656 100644 --- a/src/Magnum/Platform/magnum-info.cpp +++ b/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 diff --git a/src/Magnum/PrimitiveQuery.h b/src/Magnum/PrimitiveQuery.h index 034d02926..8fe684458 100644 --- a/src/Magnum/PrimitiveQuery.h +++ b/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 diff --git a/src/Magnum/RectangleTexture.h b/src/Magnum/RectangleTexture.h index 6c37fa975..d33e3086f 100644 --- a/src/Magnum/RectangleTexture.h +++ b/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 diff --git a/src/Magnum/Test/AbstractOpenGLTester.h b/src/Magnum/Test/AbstractOpenGLTester.h index 8f7b585b7..1f663b9ed 100644 --- a/src/Magnum/Test/AbstractOpenGLTester.h +++ b/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 { diff --git a/src/Magnum/Text/fontconverter.cpp b/src/Magnum/Text/fontconverter.cpp index 586f3b6c5..2efbc7d63 100644 --- a/src/Magnum/Text/fontconverter.cpp +++ b/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" diff --git a/src/Magnum/TextureArray.h b/src/Magnum/TextureArray.h index d50a344ac..fe021b652 100644 --- a/src/Magnum/TextureArray.h +++ b/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 diff --git a/src/Magnum/TextureTools/distancefieldconverter.cpp b/src/Magnum/TextureTools/distancefieldconverter.cpp index 3c2ed6971..9ad8533fd 100644 --- a/src/Magnum/TextureTools/distancefieldconverter.cpp +++ b/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" diff --git a/src/Magnum/TransformFeedback.h b/src/Magnum/TransformFeedback.h index 6e4c02ac7..61fd852e7 100644 --- a/src/Magnum/TransformFeedback.h +++ b/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