juce_DefineMacros.h

Go to the documentation of this file.
00001 /*
00002   ==============================================================================
00003 
00004    This file is part of the JUCE library - "Jules' Utility Class Extensions"
00005    Copyright 2004-7 by Raw Material Software ltd.
00006 
00007   ------------------------------------------------------------------------------
00008 
00009    JUCE can be redistributed and/or modified under the terms of the
00010    GNU General Public License, as published by the Free Software Foundation;
00011    either version 2 of the License, or (at your option) any later version.
00012 
00013    JUCE is distributed in the hope that it will be useful,
00014    but WITHOUT ANY WARRANTY; without even the implied warranty of
00015    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016    GNU General Public License for more details.
00017 
00018    You should have received a copy of the GNU General Public License
00019    along with JUCE; if not, visit www.gnu.org/licenses or write to the
00020    Free Software Foundation, Inc., 59 Temple Place, Suite 330,
00021    Boston, MA 02111-1307 USA
00022 
00023   ------------------------------------------------------------------------------
00024 
00025    If you'd like to release a closed-source product which uses JUCE, commercial
00026    licenses are also available: visit www.rawmaterialsoftware.com/juce for
00027    more information.
00028 
00029   ==============================================================================
00030 */
00031 
00032 #ifndef __JUCE_DEFINEMACROS_JUCEHEADER__
00033 #define __JUCE_DEFINEMACROS_JUCEHEADER__
00034 
00035 //==============================================================================
00036 /*
00037     This header file re-defines macros that were omitted if the
00038     JUCE_DONT_DEFINE_MACROS flag was set before including juce.h.
00039 
00040     For a better explanation, see the comments at the top of the
00041     juce_WithoutMacros.h file.
00042 */
00043 
00044 //==============================================================================
00045 #ifndef __JUCE_WITHOUTMACROS_JUCEHEADER__
00046   #error "This file is only supposed to be included after juce_WithoutMacros.h!"
00047 #endif
00048 
00049 #if (! DONT_SET_USING_JUCE_NAMESPACE) && defined (JUCE_NAMESPACE)
00050 
00051   // on the Mac, these symbols are defined in the Mac libraries, so
00052   // these macros make it easier to reference them without writing out
00053   // the namespace every time.
00054   #if JUCE_MAC
00055     #define Component       JUCE_NAMESPACE::Component
00056     #define MemoryBlock     JUCE_NAMESPACE::MemoryBlock
00057     #define Point           JUCE_NAMESPACE::Point
00058     #define Button          JUCE_NAMESPACE::Button
00059   #endif
00060 
00061   // "Rectangle" is defined in some of the newer windows header files..
00062   #if JUCE_WIN32
00063     #define Rectangle       JUCE_NAMESPACE::Rectangle
00064   #endif
00065 #endif
00066 
00067 #define T(stringLiteral)            JUCE_T(stringLiteral)
00068 
00069 #endif   // __JUCE_DEFINEMACROS_JUCEHEADER__