Understanding Kdevelop Source Code

Alexander Richardson arichardson.kde at gmail.com
Sat Mar 14 20:47:38 UTC 2015


>> I can't comment on the 65536 vs 1 << 16, but I would always use an
>> enum over a #define for integer constants since both have no runtime
>> overhead but #defines could break code such as
>>
>> int ItemRepositoryBucketSize = 15;
>
> What do you mean by that? why would break ?
>
Because the #define is handled by the preprocessor and it would
transform it into

int 65536 = 15;


Alex


More information about the KDevelop-devel mailing list