ManaPlus
Public Member Functions | Data Fields
doctest::detail::Expression_lhs< L > Struct Template Reference

#include <doctest.h>

Public Member Functions

 Expression_lhs (L in, assertType::Enum at)
 
 __attribute__ ((noinline)) operator Result()
 

Data Fields

lhs
 
assertType::Enum m_at
 

Detailed Description

template<typename L>
struct doctest::detail::Expression_lhs< L >

Definition at line 1166 of file doctest.h.

Constructor & Destructor Documentation

◆ Expression_lhs()

template<typename L >
doctest::detail::Expression_lhs< L >::Expression_lhs ( in,
assertType::Enum  at 
)
inlineexplicit

Definition at line 1171 of file doctest.h.

1172  : lhs(in)
1173  , m_at(at) {}

Member Function Documentation

◆ __attribute__()

template<typename L >
doctest::detail::Expression_lhs< L >::__attribute__ ( (noinline)  )
inline

OCLINT bitwise operator in conditional

Definition at line 1175 of file doctest.h.

1175  {
1176  bool res = !!lhs;
1177  if(m_at & assertType::is_false)
1178  res = !res;
1179 
1180  if(!res || getContextOptions()->success)
1181  return Result(res, toString(lhs));
1182  return Result(res);
1183  }
const ContextOptions * getContextOptions()
String toString(const T &value)
Definition: doctest.h:883

References doctest::detail::getContextOptions(), doctest::assertType::is_false, and doctest::toString().

Field Documentation

◆ lhs

template<typename L >
L doctest::detail::Expression_lhs< L >::lhs

Definition at line 1168 of file doctest.h.

◆ m_at

template<typename L >
assertType::Enum doctest::detail::Expression_lhs< L >::m_at

Definition at line 1169 of file doctest.h.


The documentation for this struct was generated from the following file: