]>
git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/d/dmd/objc.c
2 /* Compiler implementation of the D programming language
3 * Copyright (C) 2015-2018 by The D Language Foundation, All Rights Reserved
4 * written by Michel Fortin
5 * http://www.digitalmars.com
6 * Distributed under the Boost Software License, Version 1.0.
7 * http://www.boost.org/LICENSE_1_0.txt
8 * https://github.com/D-Programming-Language/dmd/blob/master/src/objc_stubs.c
12 #include "aggregate.h"
15 class FuncDeclaration
;
19 ObjcSelector::ObjcSelector(const char *, size_t, size_t)
21 printf("Should never be called when D_OBJC is false\n");
25 ObjcSelector
*ObjcSelector::lookup(const char *)
27 printf("Should never be called when D_OBJC is false\n");
32 ObjcSelector
*ObjcSelector::lookup(const char *, size_t, size_t)
34 printf("Should never be called when D_OBJC is false\n");
39 ObjcSelector
*ObjcSelector::create(FuncDeclaration
*)
41 printf("Should never be called when D_OBJC is false\n");
46 class UnsupportedObjc
: public Objc
48 void setObjc(ClassDeclaration
*cd
)
50 cd
->error("Objective-C classes not supported");
53 void setObjc(InterfaceDeclaration
*id
)
55 id
->error("Objective-C interfaces not supported");
58 void setSelector(FuncDeclaration
*, Scope
*)
63 void validateSelector(FuncDeclaration
*)
68 void checkLinkage(FuncDeclaration
*)
83 _objc
= new UnsupportedObjc();