File: utils.h

package info (click to toggle)
mtr 0.96-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 972 kB
  • sloc: ansic: 10,665; python: 1,171; makefile: 164; sh: 141
file content (14 lines) | stat: -rw-r--r-- 261 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef _UTILS_H
#define _UTILS_H

// Fend off -Wunused-parameter
#if defined(__GNUC__)
# define UNUSED __attribute__((__unused__))
#else
# define UNUSED
#endif

// Number of entries in a fixed-length array
#define N_ENTRIES(x) (sizeof(x) / sizeof(*x))

#endif