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!
| 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. |
| 102 | constexpr bool isSnapOsNdk() { |
| 103 | #if defined(SC_SNAPOS_NDK) |
| 104 | return true; |
| 105 | #else |
| 106 | return false; |
| 107 | #endif |