1// Licensed to the .NET Foundation under one or more agreements.
2// The .NET Foundation licenses this file to you under the MIT license.
3// See the LICENSE file in the project root for more information.
4
5/*=============================================================
6**
7** Source: commonconsts.h
8**
9**
10**============================================================*/
11
12#ifndef _COMMONCONSTS_H_
13#define _COMMONCONSTS_H_
14
15#include <pal.h>
16
17const int TIMEOUT = 60 * 5 * 1000;
18
19char *szcHelperProcessStartEvName = "start";
20char *szcHelperProcessReadyEvName = "ready";
21char *szcHelperProcessFinishEvName = "finish";
22
23/* PEDANTIC and PEDANTIC0 is a helper macro that just grumps about any
24 * zero return codes in a generic way. with little typing */
25#define PEDANTIC(function, parameters) \
26{ \
27 if (! (function parameters) ) \
28 { \
29 Trace("%s: NonFatal failure of %s%s for reasons %u and %u\n", \
30 __FILE__, #function, #parameters, GetLastError(), errno); \
31 } \
32}
33#define PEDANTIC1(function, parameters) \
34{ \
35 if ( (function parameters) ) \
36 { \
37 Trace("%s: NonFatal failure of %s%s for reasons %u and %u\n", \
38 __FILE__, #function, #parameters, GetLastError(), errno); \
39 } \
40}
41
42#endif
43