[tor/master] Add extern support for file-scope variables in testsupport.h
 
            
            
            
            
                30 Jun
                
                    2016
                
            
            
                30 Jun
                
                '16
                
            
            
            
        
    
                3:18 p.m.
            
        commit 4e4a760491ef162413240b0bb38732da801e818a Author: Andrea Shepard <andrea@torproject.org> Date: Sat Jun 25 07:47:25 2016 +0000 Add extern support for file-scope variables in testsupport.h --- src/common/testsupport.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/testsupport.h b/src/common/testsupport.h index 3bb11a7..b98d701 100644 --- a/src/common/testsupport.h +++ b/src/common/testsupport.h @@ -6,8 +6,10 @@ #ifdef TOR_UNIT_TESTS #define STATIC +#define EXTERN(type, name) extern type name; #else #define STATIC static +#define EXTERN(type, name) #endif /** Quick and dirty macros to implement test mocking.
        3410
        
      
          Age (days ago)
        
      
        3410
        
    
          Last active (days ago)
        
        
        
        0 comments
    
    
        
        1 participants
    
    
    
    
    
    
    
    
    participants (1)
- 
                 nickm@torproject.org nickm@torproject.org