encode-1.m

来自「gcc3.2.1源代码」· M 代码 · 共 32 行

M
32
字号
/* Contributed by Nicola Pero - Thu Mar  8 16:27:46 CET 2001 */#include <objc/objc.h>#include <objc/objc-api.h>#include <objc/Object.h>/* Test very simple @encode */int main (void){  if (strcmp ("i", @encode (int)))    {      abort ();    }  if (strcmp ("@", @encode (id)))    {      abort ();    }  if (strcmp ("@", @encode (Object *)))    {      abort ();    }  if (strcmp (":", @encode (SEL)))    {      abort ();    }  return 0;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?