MCPcopy Create free account
hub / github.com/Snapchat/Valdi / isSystemDebug

Function isSystemDebug

libs/utils/src/utils/platform/TargetPlatform.hpp:98–104  ·  view source on GitHub ↗

Based off of the C standard library definition of NDEBUG (not debug). TODO: We should not use this flag and should instead drive off of build flavor!

Source from the content-addressed store, hash-verified

96}
97
98// True for the on-device Spectacles lens native library, built against the SnapOS NDK.
99// This is a narrower classification within isDesktop(): the SnapOS NDK targets linux, so
100// these builds also satisfy isDesktopLinux()/isDesktop(). Driven by the SC_SNAPOS_NDK build
101// define; kPlatform stays DesktopLinux so nothing that keys off isDesktopLinux() changes.
102constexpr bool isSnapOsNdk() {
103#if defined(SC_SNAPOS_NDK)
104 return true;
105#else
106 return false;
107#endif

Callers 1

Log.hppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected