Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  31 Oct 2003, Konstantin Olchanski, , more odb "run number" error checking 
    Reply  01 Nov 2003, Stefan Ritt, , more odb  
       Reply  01 Nov 2003, Konstantin Olchanski, , more odb  
          Reply  14 Nov 2003, Stefan Ritt, , more odb  
Message ID: 110     Entry time: 14 Nov 2003     In reply to: 109
Author: Stefan Ritt 
Topic:  
Subject: more odb  
Ok, I apologize. It's all ok. Thanks for clearifying. Concerning the assert's, it 
would be nice to be able to disable them in release code. Under Windows, the 
assert() is actually a macro which expands to zero if NDEBUG is defined. I 
believe it's the same under linux, but I don't know about VxWorks. So we have 
three options:

1) Keep asserts always. This might possible slow down a DAQ system, but I'm not 
sure how much. Might be negligible.

2) Disable asserts by default (standard make). Only the "experts" can enable it 
in the make file (by removing NDEBUG), since only they know what to do with the 
assertation messages.

3) Let the user decide on the standard installation. Maybe have two libraries, 
one debug, one no-debug. The no-debug can even have the compiler optimization 
disabled, which makes debugging easier.

So what is your opinion (comments from others are welcome as well) of which way 
to go? 
ELOG V3.1.4-2e1708b5