| 1 | 
           efrain | 
           1 | 
           /*
  | 
        
        
            | 
            | 
           2 | 
            * Copyright 2019 Google
  | 
        
        
            | 
            | 
           3 | 
            *
  | 
        
        
            | 
            | 
           4 | 
            * Licensed under the Apache License, Version 2.0 (the "License");
  | 
        
        
            | 
            | 
           5 | 
            * you may not use this file except in compliance with the License.
  | 
        
        
            | 
            | 
           6 | 
            * You may obtain a copy of the License at
  | 
        
        
            | 
            | 
           7 | 
            *
  | 
        
        
            | 
            | 
           8 | 
            *      http://www.apache.org/licenses/LICENSE-2.0
  | 
        
        
            | 
            | 
           9 | 
            *
  | 
        
        
            | 
            | 
           10 | 
            * Unless required by applicable law or agreed to in writing, software
  | 
        
        
            | 
            | 
           11 | 
            * distributed under the License is distributed on an "AS IS" BASIS,
  | 
        
        
            | 
            | 
           12 | 
            * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  | 
        
        
            | 
            | 
           13 | 
            * See the License for the specific language governing permissions and
  | 
        
        
            | 
            | 
           14 | 
            * limitations under the License.
  | 
        
        
            | 
            | 
           15 | 
            */
  | 
        
        
            | 
            | 
           16 | 
              | 
        
        
            | 
            | 
           17 | 
           #ifndef RCNConfigDefines_h
  | 
        
        
            | 
            | 
           18 | 
           #define RCNConfigDefines_h
  | 
        
        
            | 
            | 
           19 | 
              | 
        
        
            | 
            | 
           20 | 
           #if defined(DEBUG)
  | 
        
        
            | 
            | 
           21 | 
           #define RCN_MUST_NOT_BE_MAIN_THREAD()                                                 \
  | 
        
        
            | 
            | 
           22 | 
             do {                                                                                \
  | 
        
        
            | 
            | 
           23 | 
               NSAssert(![NSThread isMainThread], @"Must not be executing on the main thread."); \
  | 
        
        
            | 
            | 
           24 | 
             } while (0);
  | 
        
        
            | 
            | 
           25 | 
           #else
  | 
        
        
            | 
            | 
           26 | 
           #define RCN_MUST_NOT_BE_MAIN_THREAD() \
  | 
        
        
            | 
            | 
           27 | 
             do {                                \
  | 
        
        
            | 
            | 
           28 | 
             } while (0);
  | 
        
        
            | 
            | 
           29 | 
           #endif
  | 
        
        
            | 
            | 
           30 | 
              | 
        
        
            | 
            | 
           31 | 
           #define RCNExperimentTableKeyPayload "experiment_payload"
  | 
        
        
            | 
            | 
           32 | 
           #define RCNExperimentTableKeyMetadata "experiment_metadata"
  | 
        
        
            | 
            | 
           33 | 
              | 
        
        
            | 
            | 
           34 | 
           #endif
  |