const-str-12.m
来自「Mac OS X 10.4.9 for x86 Source Code gcc」· M 代码 · 共 28 行
M
28 行
/* APPLE LOCAL file 4154928 *//* Test if ObjC types play nice in conditional expressions. *//* Author: Ziemowit Laski *//* { dg-options "-fno-constant-cfstrings -fconstant-string-class=Foo" } *//* { dg-do compile { target *-*-darwin* } } */#include <objc/Object.h>@interface Foo: Object { char *cString; unsigned int len;}+ (id)description;@end@interface Bar: Object+ (Foo *) getString: (int) which;@endstruct objc_class _FooClassReference;@implementation Bar+ (Foo *) getString: (int) which { return which? [Foo description]: @"Hello";}@end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?