Skip to content

Commit

Permalink
defined variables can't contain dashes (#2896)
Browse files Browse the repository at this point in the history
* defined variables can't contain dashes

* Fix markdown highlighting hint
  • Loading branch information
trufae authored Sep 24, 2024
1 parent b69b228 commit 2128020
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/ios/MASVS-RESILIENCE/MASTG-TEST-0084.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ In Objective-C, developers can use preprocessor macros to filter out debug code:

In Swift 2 (with Xcode 7), you have to set custom compiler flags for every target, and compiler flags have to start with "-D". So you can use the following annotations when the debug flag `DMSTG-DEBUG` is set:

```default
#if MSTG-DEBUG
```objectivec
#if MSTG_DEBUG
// Debug-only code
#endif
```

In Swift 3 (with Xcode 8), you can set Active Compilation Conditions in Build settings/Swift compiler - Custom flags. Instead of a preprocessor, Swift 3 uses [conditional compilation blocks](https://developer.apple.com/library/content/documentation/Swift/Conceptual/BuildingCocoaApps/InteractingWithCAPIs.html#//apple_ref/doc/uid/TP40014216-CH8-ID34 "Swift conditional compilation blocks") based on the defined conditions:

```default
```objectivec
#if DEBUG_LOGGING
// Debug-only code
#endif
Expand Down

0 comments on commit 2128020

Please sign in to comment.