Last change
on this file since 3594 was 3509, checked in by Bruno Cornec, 9 years ago |
- Change mr_msg_int interface by adding the FUNCTION macro
- Use mr_msg in mr_system
- Ability to use that new log system everywhere now
|
-
Property svn:eol-style
set to
native
|
File size:
634 bytes
|
Rev | Line | |
---|
[3498] | 1 | /*
|
---|
| 2 | * $Id$
|
---|
| 3 | *
|
---|
| 4 | * Header file of mr_sys: a set of function manipulating system
|
---|
| 5 | * Provided under the GPL v2
|
---|
| 6 | */
|
---|
| 7 |
|
---|
| 8 | #ifndef MR_SYS_H
|
---|
| 9 | #define MR_SYS_H
|
---|
| 10 |
|
---|
| 11 | #ifndef _GNU_SOURCE
|
---|
| 12 | #define _GNU_SOURCE
|
---|
| 13 | #endif
|
---|
| 14 | #include <stdarg.h>
|
---|
| 15 | #include <stdio.h>
|
---|
[3509] | 16 | #include "mr_msg.h"
|
---|
[3498] | 17 |
|
---|
| 18 | /* Internal function bringing debuging info
|
---|
| 19 | * called indirectly through macros */
|
---|
| 20 | extern inline int mr_system_int(int line, char *file, const char *fmt, ...);
|
---|
| 21 |
|
---|
[3509] | 22 | /* functions (public methods) */
|
---|
| 23 | #define mr_system(y,args...) mr_system_int(__LINE__,__FILE__,y,## args)
|
---|
| 24 |
|
---|
| 25 | /* Global variables */
|
---|
| 26 |
|
---|
| 27 | extern int mr_loglevel;
|
---|
| 28 | extern char *mr_logfile;
|
---|
| 29 |
|
---|
[3498] | 30 | #endif /* MR_SYS_H */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.