[Toybox] include guard
Alex
alex.alvarez at xbasics.com
Tue Mar 6 15:15:45 PST 2012
I just took a brief look a the source code for some of the components in
this project, which BTW I think is a great and the code looks really neat,
and saw the use/need of includes to toys.h in many files. I was wondering
why you don't have an include guard like...
#ifndef _TOYS_H
#include "toys.h"
#define _TOYS_H
#endif
...instead of the one-liner includes to make sure, in this case, toys.h is
not been added several times over? Sorry if this is been taken care some
place else and I didn't see it.
Thanks, Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20120306/4123afac/attachment-0005.htm>
More information about the Toybox
mailing list