busybox: update to 1.25.0
[tomato.git] / release / src / router / busybox / libbb / xfunc_die.c
blob73f7998e583f28bb2c70618314f25c5c626d6d41
1 /* vi: set sw=4 ts=4: */
2 /*
3 * Utility routines.
5 * Copyright (C) 2008 by Denys Vlasenko <vda.linux@googlemail.com>
7 * Licensed under GPLv2, see file LICENSE in this source tree.
8 */
10 /* Keeping it separate allows to NOT pull in stdio for VERY small applets.
11 * Try building busybox with only "true" enabled... */
13 #include "libbb.h"
15 void (*die_func)(void);
17 void FAST_FUNC xfunc_die(void)
19 if (die_func)
20 die_func();
21 exit(xfunc_error_retval);