nil_method.c (nil_method): No longer varardic.
[official-gcc.git] / libobjc / nil_method.c
blob47201d69cc12ce0739d93b08d57a37da86aef1ca
1 /* GNU Objective C Runtime nil receiver function
2 Copyright (C) 1993, 1995, 1996, 2002 Free Software Foundation, Inc.
3 Contributed by Kresten Krab Thorup
5 This file is part of GNU CC.
7 GNU CC is free software; you can redistribute it and/or modify it under the
8 terms of the GNU General Public License as published by the Free Software
9 Foundation; either version 2, or (at your option) any later version.
11 GNU CC is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 details.
16 You should have received a copy of the GNU General Public License along with
17 GNU CC; see the file COPYING. If not, write to the Free Software
18 Foundation, 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
21 /* As a special exception, if you link this library with files compiled with
22 GCC to produce an executable, this does not cause the resulting executable
23 to be covered by the GNU General Public License. This exception does not
24 however invalidate any other reasons why the executable file might be
25 covered by the GNU General Public License. */
27 /* This is the nil method, the function that is called when the receiver
28 of a method is nil */
30 #include "runtime.h"
32 /* nil_method is declared with variable arguments but the runtime calls it
33 in a way that does not setup the variable arguments correctly. Some Architectures
34 that have special arg calling conventions like x86-64 do need every function with
35 variable arguments called the correct way. */
37 nil_method (id receiver, SEL op __attribute__ ((__unused__)))
39 return receiver;