Hi Don,

These are used for conditional features -- in this case you can disable
autodj crates by compiling with scons autodjcrates=0 -- that drops all the
code in the ifdef blocks.

The inside/outside cases are largely for the benefit of moc (Qt's
meta-object compiler) -- you can't conditionally define a signal/slot so we
have to define the method but we drop the implementation with the ifdef.

cheers,
RJ

On Thu, Jan 15, 2015 at 2:29 PM, Don Dennis <kool.d...@gmail.com> wrote:

> Hi ,
> Many functions in different parts of the files in src/library/autodj/ have
> ifndef , endif statements as
>
> #ifdef __AUTODJCRATES__
> ....
> #endif
>
>
> How are they useful , I see parts of some functions defined outside this
> block and part of it inside.
>
> I know that the #ifndef used in the headers are to prevent multiple
> inclusions (or so I assumed ) , can someone explain this
>
> Regards,
> Don Dennis
>
>
> ------------------------------------------------------------------------------
> New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
> GigeNET is offering a free month of service with a new server in Ashburn.
> Choose from 2 high performing configs, both with 100TB of bandwidth.
> Higher redundancy.Lower latency.Increased capacity.Completely compliant.
> http://p.sf.net/sfu/gigenet
> _______________________________________________
> Get Mixxx, the #1 Free MP3 DJ Mixing software Today
> http://mixxx.org
>
>
> Mixxx-devel mailing list
> Mixxx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mixxx-devel
>
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Get Mixxx, the #1 Free MP3 DJ Mixing software Today
http://mixxx.org


Mixxx-devel mailing list
Mixxx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mixxx-devel

Reply via email to