#include <vsmc/internal/config.h>
#include <cassert>
#include <cstdio>
#include <stdexcept>
#include <string>
 
Go to the source code of this file.
      
        
          | #define VSMC_RUNTIME_ASSERT | 
          ( | 
            | 
          cond,  | 
        
        
           | 
           | 
            | 
          msg  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Value:{                                                                         \
        if (!(cond)) {                                                        \
            std::fprintf(stderr, "vSMC runtime assertion failded:%s:%d:%s\n", \
                __FILE__, __LINE__, msg);                                     \
        };                                                                    \
        assert(cond);                                                         \
    }
 
Definition at line 53 of file assert.hpp.
 
 
      
        
          | #define VSMC_RUNTIME_WARNING | 
          ( | 
            | 
          cond,  | 
        
        
           | 
           | 
            | 
          msg  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Value:{                                                                         \
        if (!(cond)) {                                                        \
            std::fprintf(stderr,                                              \
                "vSMC runtime warning; File: %s; Line: %d\n%s\n", __FILE__,   \
                __LINE__, msg);                                               \
            std::fflush(stderr);                                              \
        };                                                                    \
    }
 
Definition at line 75 of file assert.hpp.