3 ms·
Well, I might be upset if this were true for all keywords. @static @inline @unsigned @int ilog2(@unsigned @int x) { @for (@unsigned @int i = 0;
by dietrichepp 14y ago
Well, I might be upset if this were true for all keywords.
@static @inline @unsigned @int ilog2(@unsigned @int x)
{
@for (@unsigned @int i = 0; i < 32; i++)
@if ((x >> i) == 0)
@return i;
@return 32;
}
I'm a bit dizzy looking at that code, let me sit down for a moment.
- redial 14y agoI believe the @ is used only by the obj-c keywords and not the ones from C. So it'll be something more like this @autoreleasepool{ for (int index = 0; index < 100; index++){ int error = [MyObject performSelector:@selector(addCoolFilterToImage:)]; if (error) { return 32; } } }
- dietrichepp 14y agoYeah, that was kind of my point.