vswitchd: #ifdef OPS vs #ifndef OPS_TEMP #ifdef #ifndef


Johnson, John D (HPN) <ops-dev@...>
 

I'm starting to work with vswitchd and I'm trying to figure out how I'm supposed to #ifdef gate my code.

There are numerous examples of:
#ifdef OPS
Blah, blah;
#endif

But there are also tons of places that do:
#ifndef OPS_TEMP
Blah, blah;
#endif

Looking at the compilation output, some files are compiled with "-DOPS" and others (including bridge.c) are compiled with "-DOPS -DOPS_TEMP".

I don't see any mention of either define in the docs.
Could somebody please explain the intended usage of OPS and OPS_TEMP so I can decide which I need to use?

Thanks,
John

Join dev@lists.openswitch.net to automatically receive all group messages.