3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Qiita全国学生対抗戦Advent Calendar 2022

Day 19

【Xcode】エラー文や警告文をカスタムする

Last updated at Posted at 2022-12-19

はじめに

Xcodeで文字を適当に打ってたら面白いものを見つけたので記事にしておきます。

スクリーンショット 2022-12-19 21.22.27.png

実装

#warning("これは警告です")
#error("これはエラーです")

使い所

あんまり思いつきませんが、こんな使い方ができそうです。

#warning("あとで修正")

おわり

もっといい使い方があればコメントください!

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?