8.3.2. @encode

8.3.2 @encode

GNU Objective-C supports the @encode syntax that allows you to create a type encoding from a C/Objective-C type. For example, @encode(int) is compiled by the compiler into "i".

@encode does not support type qualifiers other than const. For example, @encode(const char*) is valid and is compiled into "r*", while @encode(bycopy char *) is invalid and will cause a compilation error.

© Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
https://gcc.gnu.org/onlinedocs/gcc-6.3.0/gcc/_0040encode.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部