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