Disable RxSwift.resourceCount example outside of playground

This commit is contained in:
Scott Gardner 2016-05-14 12:34:18 -05:00
parent 3efaeac3ad
commit 52005f4096
1 changed files with 4 additions and 1 deletions

View File

@ -167,6 +167,8 @@ example("debug") {
## `RxSwift.resourceCount` ## `RxSwift.resourceCount`
Provides a count of all Rx resource allocations, which is useful for detecting leaks during development. Provides a count of all Rx resource allocations, which is useful for detecting leaks during development.
*/ */
#if NOT_IN_PLAYGROUND
#else
example("RxSwift.resourceCount") { example("RxSwift.resourceCount") {
print(RxSwift.resourceCount) print(RxSwift.resourceCount)
@ -194,6 +196,7 @@ example("RxSwift.resourceCount") {
} }
print(RxSwift.resourceCount) print(RxSwift.resourceCount)
//: > `RxSwift.resourceCount` is not enabled by default. [Click here](Enable_RxSwift.resourceCount) for instructions on how to enable it. #endif
//: > `RxSwift.resourceCount` is not enabled by default, and should generally not be enabled in Release builds. [Click here](Enable_RxSwift.resourceCount) for instructions on how to enable it.
//: [Table of Contents](Table_of_Contents) //: [Table of Contents](Table_of_Contents)