3 /* xbt.h - Public interface to the xbt (gras's toolbox) */
5 /* Copyright (c) 2004 Martin Quinson. */
6 /* Copyright (c) 2004 Arnaud Legrand. */
7 /* All rights reserved. */
9 /* This program is free software; you can redistribute it and/or modify it
10 * under the terms of the license (GNU LGPL) which comes with this package. */
16 # define max(a, b) (((a) > (b))?(a):(b))
19 # define min(a, b) (((a) < (b))?(a):(b))
25 #define XBT_MAX_CHANNEL 10 /* FIXME: killme */
26 /*! C++ users need love */
29 # define BEGIN_DECL() extern "C" {
35 /*! C++ users need love */
43 /* End of cruft for C++ */
46 /* Dunno where to place this: needed by config and amok */
52 /** \name Free functions
54 * Pointer to a function freeing something
57 typedef void (void_f_ppvoid_t)(void**); /**< Pointer to a function freeing something */
58 typedef void (void_f_pvoid_t) (void*); /**< Pointer to a function freeing something */
63 #endif /* XBT_MISC_H */