1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-20 01:14:20 +00:00

Fix for use of static_assert on C++11 compilers

This commit is contained in:
jules 2015-11-05 16:21:38 +00:00
parent 5569bd8a4d
commit 4e4f8767fe
2 changed files with 3 additions and 3 deletions

View file

@ -164,13 +164,13 @@
#define JUCE_STRINGIFY(item) JUCE_STRINGIFY_MACRO_HELPER (item)
//==============================================================================
#ifdef JUCE_COMPILER_SUPPORTS_STATIC_ASSERT
#if JUCE_COMPILER_SUPPORTS_STATIC_ASSERT
/** A compile-time assertion macro.
If the expression parameter is false, the macro will cause a compile error. (The actual error
message that the compiler generates may be completely bizarre and seem to have no relation to
the place where you put the static_assert though!)
*/
#define static_jassert(expression) static_assert (expression);
#define static_jassert(expression) static_assert(expression, #expression);
#else
#ifndef DOXYGEN
namespace juce

View file

@ -52,8 +52,8 @@
//==============================================================================
#include <vector> // included before platform defs to provide a definition of _LIBCPP_VERSION
#include "juce_PlatformDefs.h"
#include "juce_CompilerSupport.h"
#include "juce_PlatformDefs.h"
//==============================================================================
// Now we'll include some common OS headers..