try-catch-3.m
来自「用于进行gcc测试」· M 代码 · 共 20 行
M
20 行
/* Test if caught exception objects are accessible inside the @catch block. (Yes, I managed to break this.) *//* Author: Ziemowit Laski <zlaski@apple.com> *//* { dg-do compile } *//* { dg-options "-fobjc-exceptions" } */#include <objc/Object.h>const char *foo(void){ @try { return "foo"; } @catch (Object* theException) { return [theException name]; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?