فهرست منبع

* implemented objcprotocol for now with a call to objc_GetProtocol()

git-svn-id: branches/objc@13730 -
Jonas Maebe 16 سال پیش
والد
کامیت
c9a6e32f16
1فایلهای تغییر یافته به همراه5 افزوده شده و 2 حذف شده
  1. 5 2
      compiler/nobjc.pas

+ 5 - 2
compiler/nobjc.pas

@@ -162,8 +162,11 @@ function tobjcprotocolnode.pass_typecheck: tnode;
 
 function tobjcprotocolnode.pass_1: tnode;
   begin
-    result:=nil;
-    expectloc:=LOC_CREFERENCE;
+    result:=ccallnode.createinternresfromunit('OBJC1','OBJC_GETPROTOCOL',
+      ccallparanode.create(cstringconstnode.createstr(tobjectdef(left.resultdef).objextname^),nil),
+      resultdef
+    );
+    typecheckpass(result);
   end;