Re: [sigc] How to include libsigc
- From: Aaron Griffin <aaronmgriffin gmail com>
- To: libsigc-list gnome org
- Subject: Re: [sigc] How to include libsigc
- Date: Tue, 14 Jun 2005 09:50:28 -0500
On 6/14/05, Ulrich Eckhardt <eckhardt satorlaser com> wrote:
> Paul Giblock wrote:
> > #ifndef _WIDGET_H_
> > #define _WIDGET_H_
>
> I have no idea if it makes a diff, but I personally don't take chances in
> this. Therefore: macros with an underscore and a capital are reserved to the
> compiler/stdlib, never use them! Other than that, this include guard is sooo
> generic that it almost cries for colliding with others (by other widgetsets).
> Add some random data plus the creation date and you're much safer.
That's not true. double underscores are reserved for the standard library...
I do agree the include guard is very generic, however... I usually
include my namespace (if I have one) or project name...
#ifndef _MYPROJ__WIDGET_H_
that's unique enough
Anyway, this is way off topic 8)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]