Wireshark mailing list archives
Re: Conditional compilation (debug)
From: Dario Lombardo <dario.lombardo.ml () gmail com>
Date: Thu, 27 Jul 2017 22:11:41 +0200
I was thinking to something like CMAKE_BUILD_TYPE (Debug/Release), but I'm not sure it fits the purpose and anyway it is cmake specific. The goal is: I want to make the debug of the interaction between ui and extcaps easier. For that I'd like to use some debug entries in the extcap interface dialog. Those flags are mostly developer-oriented, then I'd like to get rid of them in release builds, although I don't know if wireshark release builds and others differ in some way. I'd like something that mimics assert() behavior, if I'm not mistaken. On Thu, Jul 27, 2017 at 6:58 PM, Jeff Morriss <jeff.morriss.ws () gmail com> wrote:
On Thu, Jul 27, 2017 at 12:34 PM, Dario Lombardo < dario.lombardo.ml () gmail com> wrote:Hi I'd like to add some code that appears only in development builds of wireshark. Is there some define that helps me understand if I am in such a case, both in autotools and cmake?Define "development build." Do you mean 2.3.x or 2.5.x or do you mean anything not built on a buildbot? For the latter we frequently just check if we're running in a build directory (there's also an environment variable for that). ____________________________________________________________ _______________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: https://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject= unsubscribe
___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: https://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- Conditional compilation (debug) Dario Lombardo (Jul 27)
- Re: Conditional compilation (debug) Pascal Quantin (Jul 27)
- Re: Conditional compilation (debug) Jeff Morriss (Jul 27)
- Re: Conditional compilation (debug) Dario Lombardo (Jul 27)
- Re: Conditional compilation (debug) Roland Knall (Jul 28)
- Re: Conditional compilation (debug) Dario Lombardo (Jul 29)
- Re: Conditional compilation (debug) Michael Mann via Wireshark-dev (Jul 29)
- Re: Conditional compilation (debug) Dario Lombardo (Jul 30)
- Re: Conditional compilation (debug) Michael Mann via Wireshark-dev (Jul 29)
- Re: Conditional compilation (debug) Dario Lombardo (Jul 27)