#include "g0api/g0api.h"
#include "eir/eir.h"
#include "parse/parse.h"

using namespace goose;
using namespace goose::parse;

namespace goose::g0api
{
    void SetupApiVerificationFuncs( Env& e )
    {
        RegisterBuiltinFunc< Intrinsic< Value ( bool ) > >( e, "assert"_sid,
            []( const Context& c, const Value& cond )
            {
                return BuildComputedValue( GetValueType< void >(),
                    cir::Assert( cond ) );
            } );
    }
}
