tizen 2.3 release
[external/buxton.git] / src / shared / log.h
1 /*
2  * This file is part of buxton.
3  *
4  * Copyright (C) 2013 Intel Corporation
5  *
6  * buxton is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU Lesser General Public License as
8  * published by the Free Software Foundation; either version 2.1
9  * of the License, or (at your option) any later version.
10  */
11
12 #pragma once
13
14 #ifdef HAVE_CONFIG_H
15     #include "config.h"
16 #endif
17
18 #ifdef DEBUG
19 #define buxton_debug(...) do { \
20         (buxton_log("%s():[%d]: ",  __func__, __LINE__), buxton_log(__VA_ARGS__)); \
21 } while(0);
22 #else
23 #define buxton_debug(...) do {} while(0);
24 #endif /* DEBUG */
25
26 void buxton_log(const char *fmt, ...);
27
28 /*
29  * Editor modelines  -  http://www.wireshark.org/tools/modelines.html
30  *
31  * Local variables:
32  * c-basic-offset: 8
33  * tab-width: 8
34  * indent-tabs-mode: t
35  * End:
36  *
37  * vi: set shiftwidth=8 tabstop=8 noexpandtab:
38  * :indentSize=8:tabSize=8:noTabs=false:
39  */