[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-dev] Sample rate posting on server startup no longer printed



2009/12/29 James Harkins <jamshark70@xxxxxxxxx>:
> #ifndef NDEBUG
> if(mWorld->mVerbosity >= 0){
> scprintf("SC_AudioDriver: sample rate = %f, driver's block size = %d\n",
> sampleRate, mNumSamplesPerCallback);
> }
> #endif
> I just noticed in my latest-from-svn build that this is not printed anymore
> using the default verbosity setting. This code itself hasn't changed in over
> a year (and neither has s.options.verbosity), so NDEBUG must have changed
> somewhere else?

Yes, Tim pointed out that (to use assertions correctly) NDEBUG should
always be defined for a deployment build.

> Do we even need the #ifndef here?

No, remove it says I.

Dan

_______________________________________________
sc-dev mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/