Commit 83f80df4 authored by Henrich Lauko's avatar Henrich Lauko

rst: Add C interface to tristate domain.

parent 784af76c
#include <rst/tristate.hpp>
#include <rst/common.h>
using __tristate = __dios::rst::abstract::Tristate;
extern "C" {
bool __lower_tristate( __tristate tr ) { return tr.lower(); }
namespace __dios::rst::abstract {
bool Tristate::lower() const noexcept {
return static_cast<bool>( *this );
return static_cast< bool >( *this );
} // namespace abstract
} // namespace __dios::rst::abstract
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment