global.h

00001 /* kjs/global.h.  Generated by configure.  */
00002 // -*- c-basic-offset: 2 -*-
00003 /*
00004  *  This file is part of the KDE libraries
00005  *  Copyright (C) 2002 David Faure (david@mandrakesoft.com)
00006  *
00007  *  This library is free software; you can redistribute it and/or
00008  *  modify it under the terms of the GNU Lesser General Public
00009  *  License as published by the Free Software Foundation; either
00010  *  version 2 of the License, or (at your option) any later version.
00011  *
00012  *  This library is distributed in the hope that it will be useful,
00013  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  *  Lesser General Public License for more details.
00016  *
00017  *  You should have received a copy of the GNU Lesser General Public License
00018  *  along with this library; see the file COPYING.LIB.  If not, write to
00019  *  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00020  *  Boston, MA 02110-1301, USA.
00021  *
00022  */
00023 
00024 #ifndef KJS_GLOBAL_H
00025 #define KJS_GLOBAL_H
00026 
00027 // maximum global call stack size. Protects against accidental or
00028 // malicious infinite recursions. Define to -1 if you want no limit.
00029 #define KJS_MAX_STACK 1000
00030 
00031 // we don't want any padding between UChars (ARM processor)
00032 #if defined(__GNUC__) || defined(__INTEL_COMPILER)
00033 #define KJS_PACKED __attribute__((__packed__))
00034 #else
00035 #define KJS_PACKED
00036 #endif
00037 
00038 #define __KDE_HAVE_GCC_VISIBILITY "1"
00039 
00040 #ifdef __KDE_HAVE_GCC_VISIBILITY
00041 #define KJS_EXPORT __attribute__ ((visibility("default")))
00042 #else
00043 #define KJS_EXPORT
00044 #endif
00045 
00046 #ifndef NDEBUG // protection against problems if committing with KJS_VERBOSE on
00047 
00048 // Uncomment this to enable very verbose output from KJS
00049 //#define KJS_VERBOSE
00050 // Uncomment this to debug memory allocation and garbage collection
00051 //#define KJS_DEBUG_MEM
00052 
00053 #endif
00054 
00055 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys