libharkio3
A File I/O and Data Manipulation Library for HARK
libharkio3_macros.h
1 /*
2  * Copyright (c) 2014 - 2020 Honda Research Institute Japan Co., Ltd.
3  * All rights reserved.
4  * HARK was developed by researchers in Okuno Laboratory
5  * at the Kyoto University and Honda Research Institute Japan Co.,Ltd.
6  *
7  * Licensed under the HARK license, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * https://www.hark.jp/notice/HARK_License_Agreement.pdf
12  */
13 
14 /*
15  This header is for replacing debug print methods.
16  If you have special functions for logging, e.g., Eclipse,
17  Replace these macros with your functions.
18  */
19 
20 #ifndef __LIBHARKIO3_MACROS__
21 #define __LIBHARKIO3_MACROS__
22 #define LIBHARKIO_LOGT(...) (fprintf(stderr, __VA_ARGS__))
23 #define LIBHARKIO_LOGD(...) (fprintf(stderr, __VA_ARGS__))
24 #define LIBHARKIO_LOGI(...) (fprintf(stderr, __VA_ARGS__))
25 #define LIBHARKIO_LOGW(...) (fprintf(stderr, __VA_ARGS__))
26 #define LIBHARKIO_LOGE(...) (fprintf(stderr, __VA_ARGS__))
27 #define LIBHARKIO_LOGVT(...) (vfprintf(stderr, __VA_ARGS__))
28 #define LIBHARKIO_LOGVD(...) (vfprintf(stderr, __VA_ARGS__))
29 #define LIBHARKIO_LOGVI(...) (vfprintf(stderr, __VA_ARGS__))
30 #define LIBHARKIO_LOGVW(...) (vfprintf(stderr, __VA_ARGS__))
31 #define LIBHARKIO_LOGVE(...) (vfprintf(stderr, __VA_ARGS__))
32 #endif