3 ms·
It's pretty unlikely that list.h would have a trivial include guard, so I don't see how the above optimization would break it. An include guard in list.h would
by stormbrew 13y ago
It's pretty unlikely that list.h would have a trivial include guard, so I don't see how the above optimization would break it. An include guard in list.h would prevent you from using it properly with or without the optimization.
- pjmlp 13y agoNot when you #undef it. That was just a possible example.
- dllthomas 13y agoIf list.h has no include guard, it gets included with or without this optimization. If it has an include guard and you #undef it, then it gets included again with or without this optimization. If you it has an include guard and you do not #undef it, it does not get included again, with or without this optimization. In no case does this optimization change the code emitted.
- deleted 13y ago[deleted]