CArl
Code Arlequin / C++ implementation
common_header.h File Reference
#include <chrono>
#include <boost/random/uniform_real_distribution.hpp>
#include <boost/random/lagged_fibonacci.hpp>
#include <fstream>
#include <iostream>
#include <unordered_set>
#include <unordered_map>
#include <deque>
#include <vector>
#include <iterator>
#include <algorithm>
#include <tuple>
#include <map>
#include <string>
#include <sstream>
#include <math.h>
#include <unistd.h>
#include <cstdio>
#include <memory>
#include <stdexcept>
#include <array>

Go to the source code of this file.

Macros

#define homemade_assert_msg(asserted, msg)
 
#define homemade_error_msg(msg)
 

Variables

boost::random::lagged_fibonacci607 m_rng
 

Macro Definition Documentation

#define homemade_assert_msg (   asserted,
  msg 
)
Value:
do \
{ \
if (!(asserted)) \
{ \
std::cerr << "Assertion `" #asserted "` failed in " << __FILE__ << std::endl\
<< " > line " << __LINE__ << ": " << msg << std::endl; \
std::exit(EXIT_FAILURE); \
} \
} while(false)

Definition at line 63 of file common_header.h.

#define homemade_error_msg (   msg)
Value:
do \
{ \
std::cerr << "Error: " << msg << std::endl; \
std::exit(EXIT_FAILURE); \
} while(false)

Definition at line 73 of file common_header.h.

Variable Documentation

boost::random::lagged_fibonacci607 m_rng