summaryrefslogtreecommitdiff
path: root/lib/sail_failure.h
blob: d43baf4dd66b840f1b5e7449b812de81cb476750 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef SAIL_FAILURE_H
#define SAIL_FAILURE_H

#include "sail.h"

/*
 * This function should be called whenever a pattern match failure
 * occurs. Pattern match failures are always fatal.
 */
void sail_match_failure(sail_string msg);

/*
 * sail_assert implements the assert construct in Sail. If any
 * assertion fails we immediately exit the model.
 */
unit sail_assert(bool b, sail_string msg);

#endif