]> err.no Git - sope/blob - Recycler/NGJavaScript/common.h
removed NGCString
[sope] / Recycler / NGJavaScript / common.h
1 /*
2   Copyright (C) 2000-2003 SKYRIX Software AG
3
4   This file is part of OGo
5
6   OGo is free software; you can redistribute it and/or modify it under
7   the terms of the GNU Lesser General Public License as published by the
8   Free Software Foundation; either version 2, or (at your option) any
9   later version.
10
11   OGo is distributed in the hope that it will be useful, but WITHOUT ANY
12   WARRANTY; without even the implied warranty of MERCHANTABILITY or
13   FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
14   License for more details.
15
16   You should have received a copy of the GNU Lesser General Public
17   License along with OGo; see the file COPYING.  If not, write to the
18   Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
19   02111-1307, USA.
20 */
21 // $Id$
22
23 #define id _id
24 #  include <js/jsapi.h>
25 #  include <js/jsobj.h>
26 #  include <js/jsutil.h>
27 #  include <js/jsfun.h>
28 #  include <js/jsarray.h>
29 #undef id
30
31 #import <Foundation/Foundation.h>
32 #include <EOControl/EOControl.h>
33
34 #if NeXT_RUNTIME || APPLE_RUNTIME
35 #  include <objc/objc.h>
36 #  include <objc/objc-class.h>
37 #endif
38
39 #if NeXT_Foundation_LIBRARY || APPLE_Foundation_LIBRARY || \
40     COCOA_Foundation_LIBRARY
41 #  include <NGExtensions/NGObjectMacros.h>
42 #  if 0 // no FoundationExt
43 #    include <FoundationExt/objc-runtime.h>
44 #    include <FoundationExt/MissingMethods.h>
45 #  endif
46 #elif LIB_FOUNDATION_LIBRARY
47 #  include <extensions/objc-runtime.h>
48 #endif
49
50 // TODO: this is true for any gcc 3 ?
51 #if COCOA_Foundation_LIBRARY || NeXT_Foundation_LIBRARY || GNUSTEP_BASE_LIBRARY
52 #  define NG_VARARGS_AS_REFERENCE 1
53 #endif