You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

19 lines
469 B

#pragma once
#ifdef FOR_PORTABLE
#include "mobvoi/base/log_lite.h"
#if !defined(NO_VERBOSE_LOGS)
#include "mobvoi/base/vlog_lite.h"
#endif
#else
#include "compat.h"
// #include "third_party/glog/logging.h"
#endif
#define ASSERT_IS_INTEGER_TYPE(I) \
CHECK(std::numeric_limits<I>::is_specialized && std::numeric_limits<I>::is_integer)
#define ASSERT_IS_FLOATING_TYPE(F) \
CHECK(std::numeric_limits<F>::is_specialized && !std::numeric_limits<F>::is_integer)