aboutsummaryrefslogtreecommitdiff
path: root/utils/math.h
blob: 561205a99b8a6f6c7d505e718d0a80fa1f9638db (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef __MATH_H_
#define __MATH_H_

/* Suppress unused parameter warnings */
#ifdef __GNUC__
#	define UNUSED(x) UNUSED_##x __attribute__((__unused__))
#else
#	define UNUSED(x) UNUSED_##x
#endif

/* Fallthrough pseudo-keyword macro */
#if __has_attribute(__fallthrough__)
#	define fallthrough __attribute__((__fallthrough__))
#else
#	define fallthrough                                                        \
		do {                                                                   \
		} while (0) /* fallthrough */
#endif

#define EXIT_FAILURE 1
#define EXIT_SUCCESS 0
#define FILE_NAME	 "bc_input.bc"
#define TIMEOUT		 5

/* Signal handlers */
void timeout_hander(int sig);
void child_handler(int sig);

#endif