diff options
| author | Michael Bebenita <[email protected]> | 2010-07-27 23:13:33 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-07-28 20:30:28 -0700 |
| commit | d7864697854fc07192d537949f7712776d652156 (patch) | |
| tree | 50d963ca92d6b1d707d52f187e99025a06094321 /src/rt/rust_internal.h | |
| parent | Move allocation-tracking into rust_srv. (diff) | |
| download | rust-d7864697854fc07192d537949f7712776d652156.tar.xz rust-d7864697854fc07192d537949f7712776d652156.zip | |
Add a warning interface to rust_srv.
Diffstat (limited to 'src/rt/rust_internal.h')
| -rw-r--r-- | src/rt/rust_internal.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rt/rust_internal.h b/src/rt/rust_internal.h index 78ba85e8..bd9be504 100644 --- a/src/rt/rust_internal.h +++ b/src/rt/rust_internal.h @@ -44,10 +44,12 @@ extern "C" { #error "Target CPU not supported." #endif -#define I(dom, e) ((e) ? (void)0 : \ +#define I(dom, e) ((e) ? (void)0 : \ (dom)->srv->fatal(#e, __FILE__, __LINE__)) +#define W(dom, e, s) ((e) ? (void)0 : \ + (dom)->srv->warning(#e " : " #s, __FILE__, __LINE__)) -#define A(dom, e, s) ((e) ? (void)0 : \ +#define A(dom, e, s) ((e) ? (void)0 : \ (dom)->srv->fatal(#e " : " #s, __FILE__, __LINE__)) struct rust_task; |