diff options
author | David Walter Seikel | 2016-03-29 02:16:55 +1000 |
---|---|---|
committer | David Walter Seikel | 2016-03-29 02:16:55 +1000 |
commit | cb3716ffb584fe0f593b6f1669a8efdba1305104 (patch) | |
tree | 5d1ebc4b6fc17b30f4b34e7e64a2d9514893459b /src/others/mimesh/libg3d-0.0.8/include/g3d/debug.h | |
parent | Add Prosody build script. (diff) | |
download | SledjHamr-cb3716ffb584fe0f593b6f1669a8efdba1305104.zip SledjHamr-cb3716ffb584fe0f593b6f1669a8efdba1305104.tar.gz SledjHamr-cb3716ffb584fe0f593b6f1669a8efdba1305104.tar.bz2 SledjHamr-cb3716ffb584fe0f593b6f1669a8efdba1305104.tar.xz |
Added my version of libg3d and friends.
Diffstat (limited to 'src/others/mimesh/libg3d-0.0.8/include/g3d/debug.h')
-rw-r--r-- | src/others/mimesh/libg3d-0.0.8/include/g3d/debug.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/others/mimesh/libg3d-0.0.8/include/g3d/debug.h b/src/others/mimesh/libg3d-0.0.8/include/g3d/debug.h new file mode 100644 index 0000000..874764b --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/include/g3d/debug.h | |||
@@ -0,0 +1,44 @@ | |||
1 | /* $Id:$ */ | ||
2 | |||
3 | /* | ||
4 | libg3d - 3D object loading library | ||
5 | |||
6 | Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de> | ||
7 | |||
8 | This library is free software; you can redistribute it and/or | ||
9 | modify it under the terms of the GNU Lesser General Public | ||
10 | License as published by the Free Software Foundation; either | ||
11 | version 2.1 of the License, or (at your option) any later version. | ||
12 | |||
13 | This library is distributed in the hope that it will be useful, | ||
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
16 | Lesser General Public License for more details. | ||
17 | |||
18 | You should have received a copy of the GNU Lesser General Public | ||
19 | License along with this library; if not, write to the Free Software | ||
20 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
21 | */ | ||
22 | #ifndef _G3D_DEBUG_H | ||
23 | #define _G3D_DEBUG_H | ||
24 | |||
25 | |||
26 | #include <glib.h> | ||
27 | /* g_debug() is defined since glib 2.6 */ | ||
28 | |||
29 | /*< private >*/ | ||
30 | #ifndef g_debug | ||
31 | #define g_debug(...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, __VA_ARGS__) | ||
32 | #endif | ||
33 | /*< public >*/ | ||
34 | |||
35 | #if DEBUG > 0 | ||
36 | #include <string.h> | ||
37 | static const gchar *debug_padding_str = " "; | ||
38 | static inline const gchar *debug_pad(guint32 level) { | ||
39 | return debug_padding_str + (strlen(debug_padding_str) - level); | ||
40 | } | ||
41 | #endif | ||
42 | |||
43 | #endif /* _G3D_DEBUG_H */ | ||
44 | |||