From 2eccc3083bc077da6ee2623e9c4bf4ded58941ac Mon Sep 17 00:00:00 2001 From: Pavel Charvat Date: Wed, 3 Sep 2008 15:14:19 +0200 Subject: [PATCH] Implemented trans_vthrow(). --- ucw/trans.c | 5 +++++ ucw/trans.h | 1 + 2 files changed, 6 insertions(+) diff --git a/ucw/trans.c b/ucw/trans.c index bbe7ca7c..67643b26 100644 --- a/ucw/trans.c +++ b/ucw/trans.c @@ -207,7 +207,12 @@ trans_throw(const char *id, void *object, const char *fmt, ...) { va_list args; va_start(args, fmt); + trans_vthrow(id, object, fmt, args); +} +void +trans_vthrow(const char *id, void *object, const char *fmt, va_list args) +{ struct mempool *mp = trans_get_pool(); struct exception *x = mp_alloc(mp, sizeof(*x)); x->id = id; diff --git a/ucw/trans.h b/ucw/trans.h index f352269c..95d9ce11 100644 --- a/ucw/trans.h +++ b/ucw/trans.h @@ -52,6 +52,7 @@ struct exception { void trans_throw_exc(struct exception *x) NONRET; void trans_throw(const char *id, void *object, const char *fmt, ...) FORMAT_CHECK(printf,3,4) NONRET; +void trans_vthrow(const char *id, void *object, const char *fmt, va_list args) NONRET; struct exception *trans_current_exc(void); -- 2.39.5