cacao  Release 0.1.03-dev
Compute And Control For Adaptive Optics
00CORE.h
Go to the documentation of this file.
1 
8 #ifndef _00CORE_H
9 #define _00CORE_H
10 
11 
12 
17 void __attribute__((constructor)) libinit_00CORE();
18 
19 
20 
21 
22 /* =========================================================*/
24 /* =========================================================*/
25 
27 int printRED(char *string);
28 
31  const char *restrict file,
32  const char *restrict func,
33  int line,
34  const char *restrict warnmessage
35 );
36 
39  const char *restrict file,
40  const char *restrict func,
41  int line,
42  const char *restrict errmessage
43 );
44 
47  const int funclevel,
48  const int loglevel,
49  const int logfuncMODE,
50  const char *FileName,
51  const char *FunctionName,
52  const long line,
53  char *comments
54 );
55 
56 
57 /* =========================================================*/
59 /* =========================================================*/
60 
61 int set_precision(int vp);
62 
63 int CLIWritePid();
64 
65 
66 /* =========================================================*/
68 /* =========================================================*/
69 
70 struct timespec timespec_diff(
71  struct timespec start,
72  struct timespec end
73 );
74 
76  struct timespec start,
77  struct timespec end
78 );
79 
80 #endif
errno_t printWARNING(const char *restrict file, const char *restrict func, int line, const char *restrict warnmessage)
Print warning and continue.
Definition: 00CORE.c:189
int CLIWritePid()
Definition: 00CORE.c:485
double timespec_diff_double(struct timespec start, struct timespec end)
Definition: 00CORE.c:531
int errno_t
Definition: AOloopControl_IOtools.h:20
void __attribute__((constructor)) libinit_00CORE()
Definition: ImageStreamIO.c:77
int printRED(char *string)
Print string in red.
Definition: 00CORE.c:142
char line[500]
Definition: CLIcore.c:175
int set_precision(int vp)
Definition: 00CORE.c:444
void CORE_logFunctionCall(const int funclevel, const int loglevel, const int logfuncMODE, const char *FileName, const char *FunctionName, const long line, char *comments)
Log function call to file.
struct timespec timespec_diff(struct timespec start, struct timespec end)
Definition: 00CORE.c:511
errno_t printERROR(const char *restrict file, const char *restrict func, int line, const char *restrict errmessage)
Print error (in red) and continue.
Definition: 00CORE.c:253