Assertion and other helper macros for sanity checking. 
◆ pj_assert
      
        
          | #define pj_assert | 
          ( | 
            | 
          expr | ) | 
           | 
        
      
 
Check during debug build that an expression is true. If the expression computes to false during run-time, then the program will stop at the offending statements. For release build, this macro will not do anything.
- Parameters
 - 
  
    | expr | The expression to be evaluated.  | 
  
   
 
 
◆ PJ_ASSERT_ON_FAIL
      
        
          | #define PJ_ASSERT_ON_FAIL | 
          ( | 
            | 
          expr,  | 
        
        
           | 
           | 
            | 
          exec_on_fail  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
If the expression yields false, assertion will be triggered and exec_on_fail will be executed. 
 
 
◆ PJ_ASSERT_RETURN
      
        
          | #define PJ_ASSERT_RETURN | 
          ( | 
            | 
          expr,  | 
        
        
           | 
           | 
            | 
          retval  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
If the expression yields false, assertion will be triggered and the current function will return with the specified return value.