OLD | NEW |
1 /* $Id: util.h 2101 2008-05-23 06:46:51Z peter $ | 1 /* $Id: util.h 2273 2010-01-13 04:44:28Z peter $ |
2 * YASM utility functions. | 2 * YASM utility functions. |
3 * | 3 * |
4 * Includes standard headers and defines prototypes for replacement functions | 4 * Includes standard headers and defines prototypes for replacement functions |
5 * if needed. | 5 * if needed. |
6 * | 6 * |
7 * Copyright (C) 2001-2007 Peter Johnson | 7 * Copyright (C) 2001-2007 Peter Johnson |
8 * | 8 * |
9 * Redistribution and use in source and binary forms, with or without | 9 * Redistribution and use in source and binary forms, with or without |
10 * modification, are permitted provided that the following conditions | 10 * modification, are permitted provided that the following conditions |
11 * are met: | 11 * are met: |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 #ifndef NELEMS | 162 #ifndef NELEMS |
163 /** Get the number of elements in an array. | 163 /** Get the number of elements in an array. |
164 * \internal | 164 * \internal |
165 * \param array array | 165 * \param array array |
166 * \return Number of elements. | 166 * \return Number of elements. |
167 */ | 167 */ |
168 #define NELEMS(array) (sizeof(array) / sizeof(array[0])) | 168 #define NELEMS(array) (sizeof(array) / sizeof(array[0])) |
169 #endif | 169 #endif |
170 | 170 |
171 #endif | 171 #endif |
OLD | NEW |