openshot-audio  0.1.7
juce_core.h
Go to the documentation of this file.
1 /*
2  ==============================================================================
3 
4  This file is part of the juce_core module of the JUCE library.
5  Copyright (c) 2015 - ROLI Ltd.
6 
7  Permission to use, copy, modify, and/or distribute this software for any purpose with
8  or without fee is hereby granted, provided that the above copyright notice and this
9  permission notice appear in all copies.
10 
11  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD
12  TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN
13  NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
14  DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
15  IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
16  CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 
18  ------------------------------------------------------------------------------
19 
20  NOTE! This permissive ISC license applies ONLY to files within the juce_core module!
21  All other JUCE modules are covered by a dual GPL/commercial license, so if you are
22  using any other modules, be sure to check that you also comply with their license.
23 
24  For more details, visit www.juce.com
25 
26  ==============================================================================
27 */
28 
29 #ifndef JUCE_CORE_H_INCLUDED
30 #define JUCE_CORE_H_INCLUDED
31 
32 #ifndef JUCE_MODULE_AVAILABLE_juce_core
33  /* If you fail to make sure that all your compile units are building JUCE with the same set of
34  option flags, then there's a risk that different compile units will treat the classes as having
35  different memory layouts, leading to very nasty memory corruption errors when they all get
36  linked together. That's why it's best to always include the Introjucer-generated AppConfig.h
37  file before any juce headers.
38 
39  Note that if you do have an AppConfig.h file and hit this warning, it means that it doesn't
40  contain the JUCE_MODULE_AVAILABLE_xxx flags, which are necessary for some inter-module
41  functionality to work correctly. In that case, you should either rebuild your AppConfig.h with
42  the latest introjucer, or fix it manually to contain these flags.
43  */
44  #ifdef _MSC_VER
45  #pragma message ("Have you included your AppConfig.h file before including the JUCE headers?")
46  #else
47  #warning "Have you included your AppConfig.h file before including the JUCE headers?"
48  #endif
49 #endif
50 
51 #ifdef _MSC_VER
52  #pragma warning (push)
53  // Disable warnings for long class names, padding, and undefined preprocessor definitions.
54  #pragma warning (disable: 4251 4786 4668 4820)
55  #ifdef __INTEL_COMPILER
56  #pragma warning (disable: 1125)
57  #endif
58 #endif
59 
60 //==============================================================================
62 
63 //=============================================================================
69 #ifndef JUCE_FORCE_DEBUG
70  //#define JUCE_FORCE_DEBUG 0
71 #endif
72 
73 //=============================================================================
85 #ifndef JUCE_LOG_ASSERTIONS
86  #if JUCE_ANDROID
87  #define JUCE_LOG_ASSERTIONS 1
88  #else
89  #define JUCE_LOG_ASSERTIONS 0
90  #endif
91 #endif
92 
93 //=============================================================================
99 #if JUCE_DEBUG && ! defined (JUCE_CHECK_MEMORY_LEAKS)
100  #define JUCE_CHECK_MEMORY_LEAKS 1
101 #endif
103 //=============================================================================
109 #ifndef JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES
110  #define JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES 0
111 #endif
121 #ifndef JUCE_INCLUDE_ZLIB_CODE
122  #define JUCE_INCLUDE_ZLIB_CODE 1
123 #endif
125 #ifndef JUCE_ZLIB_INCLUDE_PATH
126  #define JUCE_ZLIB_INCLUDE_PATH <zlib.h>
127 #endif
135 #ifndef JUCE_USE_CURL
136  #define JUCE_USE_CURL 0
137 #endif
139 
140 /* Config: JUCE_CATCH_UNHANDLED_EXCEPTIONS
141  If enabled, this will add some exception-catching code to forward unhandled exceptions
142  to your JUCEApplicationBase::unhandledException() callback.
143 */
144 #ifndef JUCE_CATCH_UNHANDLED_EXCEPTIONS
145  //#define JUCE_CATCH_UNHANDLED_EXCEPTIONS 1
146 #endif
148 #ifndef JUCE_STRING_UTF_TYPE
149  #define JUCE_STRING_UTF_TYPE 8
150 #endif
152 //=============================================================================
153 //=============================================================================
156 
157 namespace juce
158 {
160 class StringRef;
162 class File;
172 extern JUCE_API void JUCE_CALLTYPE logAssertion (const char* file, int line) noexcept;
180 #if JUCE_MSVC
181  #pragma warning (push)
182  #pragma warning (disable: 4514 4996)
183 #endif
190 #if JUCE_MSVC
191  #pragma warning (pop)
192 #endif
223 #include "text/juce_StringArray.h"
267 #include "threads/juce_Thread.h"
274 #include "network/juce_IPAddress.h"
281 #include "xml/juce_XmlDocument.h"
282 #include "xml/juce_XmlElement.h"
289 }
291 #if JUCE_MSVC
292  #pragma warning (pop)
293 #endif
295 #endif // JUCE_CORE_H_INCLUDED
Definition: juce_audio_basics.cpp:75
#define noexcept
Definition: juce_CompilerSupport.h:141
Definition: juce_core.h:66
Definition: juce_core.h:42
Definition: juce_core.h:143
JUCE_API bool JUCE_CALLTYPE juce_isRunningUnderDebugger()
Definition: juce_android_Threads.cpp:65
#define JUCE_CALLTYPE
Definition: juce_PlatformDefs.h:50
#define JUCE_API
Definition: juce_StandardHeader.h:139
Definition: juce_core.h:45
Definition: juce_core.h:46
Definition: juce_core.h:43
Definition: juce_core.h:40
Definition: juce_core.h:40
JUCE_API void JUCE_CALLTYPE logAssertion(const char *file, int line) noexcept
Definition: juce_core.cpp:329
Definition: juce_core.h:39