| 1 | /* -*-c-*- |
| 2 | Handy macrosose]] |
| 3 | * |
| 4 | * (c) 2003 Straylight/Edgeware |
| 5 | */ |
| 6 | |
| 7 | /*----- Licensing notice --------------------------------------------------* |
| 8 | * |
| 9 | * This file is part of the mLib utilities library. |
| 10 | * |
| 11 | * mLib is free software; you can redistribute it and/or modify |
| 12 | * it under the terms of the GNU Library General Public License as |
| 13 | * published by the Free Software Foundation; either version 2 of the |
| 14 | * License, or (at your option) any later version. |
| 15 | * |
| 16 | * mLib is distributed in the hope that it will be useful, |
| 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 19 | * GNU Library General Public License for more details. |
| 20 | * |
| 21 | * You should have received a copy of the GNU Library General Public |
| 22 | * License along with mLib; if not, write to the Free |
| 23 | * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, |
| 24 | * MA 02111-1307, USA. |
| 25 | */ |
| 26 | |
| 27 | /*----- Revision history --------------------------------------------------* |
| 28 | * |
| 29 | * $Log: macros.h,v $ |
| 30 | * Revision 1.1 2003/12/13 20:37:59 mdw |
| 31 | * Add adns support in background resolver. |
| 32 | * |
| 33 | */ |
| 34 | |
| 35 | #ifndef MLIB_MACROS_H |
| 36 | #define MLIB_MACROS_H |
| 37 | |
| 38 | #ifdef __cplusplus |
| 39 | extern "C" { |
| 40 | #endif |
| 41 | |
| 42 | /*----- Macros provided ---------------------------------------------------*/ |
| 43 | |
| 44 | #define N(v) (sizeof(v)/sizeof(*v)) |
| 45 | |
| 46 | /*----- That's all, folks -------------------------------------------------*/ |
| 47 | |
| 48 | #ifdef __cplusplus |
| 49 | } |
| 50 | #endif |
| 51 | |
| 52 | #endif |