00001 /********************************************************************************* 00002 * 00003 * Razor! Engine - A modular C++ presentation engine 00004 * 00005 * $Id: RazorSections.h,v 1.2 2003/02/15 11:57:56 teacy Exp $ 00006 * 00007 * Copyright (c) 2002 Tilo Christ. All Rights Reserved. 00008 * 00009 * Permission is hereby granted, free of charge, to any person obtaining a 00010 * copy of this software and associated documentation files (the "Software"), 00011 * to deal in the Software without restriction, including without limitation 00012 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 00013 * and/or sell copies of the Software, and to permit persons to whom the Software 00014 * is furnished to do so, subject to the following conditions: 00015 * 00016 * The above copyright notice and this permission notice shall be included in all 00017 * copies or substantial portions of the Software. 00018 * 00019 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, 00020 * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR 00021 * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE 00022 * FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 00023 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 00024 * 00025 **********************************************************************************/ 00026 00027 #ifndef _RAZOR_SECTIONS_H 00028 #define _RAZOR_SECTIONS_H 00029 00030 // PRC-Tools requires explicitly declared sections in the source code 00031 #ifdef __GNUC__ 00032 #define SEC_RAZOR_INIT __attribute__ ((section("SEC_RZRI"))) 00033 #define SEC_RAZOR __attribute__ ((section("SEC_RZR"))) 00034 #define SEC_GAME __attribute__ ((section("SEC_GAME"))) 00035 #else 00036 // All other compilers will happily accept externally defined section information 00037 #define SEC_RAZOR_INIT 00038 #define SEC_RAZOR 00039 #define SEC_GAME 00040 00041 #endif 00042 00043 #endif