Browse Source

DebugTools: MSVC U mad? Can't you just work properly for once.

Vladimír Vondruš 1 day ago
parent
commit
abd81b9533
  1. 11
      src/Magnum/DebugTools/ForceRenderer.cpp
  2. 11
      src/Magnum/DebugTools/ObjectRenderer.cpp
  3. 11
      src/Magnum/DebugTools/Test/ForceRendererGLTest.cpp
  4. 11
      src/Magnum/DebugTools/Test/ObjectRendererGLTest.cpp

11
src/Magnum/DebugTools/ForceRenderer.cpp

@ -27,6 +27,17 @@
#define _MAGNUM_NO_DEPRECATED_FORCERENDERER
#define _MAGNUM_NO_DEPRECATED_RESOURCEMANAGER
/* This damn joke of a compiler, even the 2022 version, ignores the
_MAGNUM_NO_DEPRECATED_FORCERENDERER macro for some reason, printing the
ForceRenderer.h file deprecation warning here, so I have to work around it
like this. Same in the test and in ObjectRenderer.h and its test, but in
ResourceManager.cpp as well as in doc/snippets/Magnum.cpp the macro works.
What the hell. */
#include <Corrade/configure.h>
#ifdef CORRADE_TARGET_MSVC
#define CORRADE_DEPRECATED_FILE(...)
#endif
#include "ForceRenderer.h"
#include "Magnum/GL/Mesh.h"

11
src/Magnum/DebugTools/ObjectRenderer.cpp

@ -27,6 +27,17 @@
#define _MAGNUM_NO_DEPRECATED_OBJECTRENDERER
#define _MAGNUM_NO_DEPRECATED_RESOURCEMANAGER
/* This damn joke of a compiler, even the 2022 version, ignores the
_MAGNUM_NO_DEPRECATED_OBJECTRENDERER macro for some reason, printing the
ObjectRenderer.h file deprecation warning here, so I have to work around it
like this. Same in the test and in ForceRenderer.h and its test, but in
ResourceManager.cpp as well as in doc/snippets/Magnum.cpp the macro works.
What the hell. */
#include <Corrade/configure.h>
#ifdef CORRADE_TARGET_MSVC
#define CORRADE_DEPRECATED_FILE(...)
#endif
#include "ObjectRenderer.h"
#include "Magnum/DebugTools/ResourceManager.h"

11
src/Magnum/DebugTools/Test/ForceRendererGLTest.cpp

@ -27,6 +27,17 @@
#define _MAGNUM_NO_DEPRECATED_FORCERENDERER
#define _MAGNUM_NO_DEPRECATED_RESOURCEMANAGER
/* This damn joke of a compiler, even the 2022 version, ignores the
_MAGNUM_NO_DEPRECATED_FORCERENDERER macro for some reason, printing the
ForceRenderer.h file deprecation warning here, so I have to work around it
like this. Same in ForceRenderer.cpp and with ObjectRenderer.h and its test,
but in ResourceManager.cpp as well as in doc/snippets/Magnum.cpp the macro
works. What the hell. */
#include <Corrade/configure.h>
#ifdef CORRADE_TARGET_MSVC
#define CORRADE_DEPRECATED_FILE(...)
#endif
#include <Corrade/Containers/Optional.h>
#include <Corrade/Containers/String.h>
#include <Corrade/PluginManager/Manager.h>

11
src/Magnum/DebugTools/Test/ObjectRendererGLTest.cpp

@ -27,6 +27,17 @@
#define _MAGNUM_NO_DEPRECATED_OBJECTRENDERER
#define _MAGNUM_NO_DEPRECATED_RESOURCEMANAGER
/* This damn joke of a compiler, even the 2022 version, ignores the
_MAGNUM_NO_DEPRECATED_OBJECTRENDERER macro for some reason, printing the
ObjectRenderer.h file deprecation warning here, so I have to work around it
like this. Same in ObjectRenderer.cpp and with ForceRenderer.h and its test,
but in ResourceManager.cpp as well as in doc/snippets/Magnum.cpp the macro
works. What the hell. */
#include <Corrade/configure.h>
#ifdef CORRADE_TARGET_MSVC
#define CORRADE_DEPRECATED_FILE(...)
#endif
#include <Corrade/Containers/Optional.h>
#include <Corrade/Containers/String.h>
#include <Corrade/PluginManager/Manager.h>

Loading…
Cancel
Save