OLD | NEW |
1 /************************************************************************** | 1 /************************************************************************** |
2 * | 2 * |
3 * Copyright 2008 Tungsten Graphics, Inc., Cedar Park, Texas. | 3 * Copyright 2008 Tungsten Graphics, Inc., Cedar Park, Texas. |
4 * All Rights Reserved. | 4 * All Rights Reserved. |
5 * | 5 * |
6 * Permission is hereby granted, free of charge, to any person obtaining a | 6 * Permission is hereby granted, free of charge, to any person obtaining a |
7 * copy of this software and associated documentation files (the | 7 * copy of this software and associated documentation files (the |
8 * "Software"), to deal in the Software without restriction, including | 8 * "Software"), to deal in the Software without restriction, including |
9 * without limitation the rights to use, copy, modify, merge, publish, | 9 * without limitation the rights to use, copy, modify, merge, publish, |
10 * distribute, sub license, and/or sell copies of the Software, and to | 10 * distribute, sub license, and/or sell copies of the Software, and to |
(...skipping 21 matching lines...) Expand all Loading... |
32 * For now it just has assert and printf replacements, but it might be extended | 32 * For now it just has assert and printf replacements, but it might be extended |
33 * with stack trace reports and more advanced logging in the near future. | 33 * with stack trace reports and more advanced logging in the near future. |
34 * | 34 * |
35 * @author Jose Fonseca <jrfonseca@tungstengraphics.com> | 35 * @author Jose Fonseca <jrfonseca@tungstengraphics.com> |
36 */ | 36 */ |
37 | 37 |
38 #ifndef U_DEBUG_H_ | 38 #ifndef U_DEBUG_H_ |
39 #define U_DEBUG_H_ | 39 #define U_DEBUG_H_ |
40 | 40 |
41 | 41 |
| 42 #include <assert.h> |
42 #include "os/os_misc.h" | 43 #include "os/os_misc.h" |
43 | 44 |
44 | 45 |
45 #ifdef __cplusplus | 46 #ifdef __cplusplus |
46 extern "C" { | 47 extern "C" { |
47 #endif | 48 #endif |
48 | 49 |
49 | 50 |
50 #if defined(__GNUC__) | 51 #if defined(__GNUC__) |
51 #define _util_printf_format(fmt, list) __attribute__ ((format (printf, fmt, list
))) | 52 #define _util_printf_format(fmt, list) __attribute__ ((format (printf, fmt, list
))) |
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 #define debug_dump_transfer_bmp(filename, transfer) ((void)0) | 445 #define debug_dump_transfer_bmp(filename, transfer) ((void)0) |
445 #define debug_dump_float_rgba_bmp(filename, width, height, rgba, stride) ((void)
0) | 446 #define debug_dump_float_rgba_bmp(filename, width, height, rgba, stride) ((void)
0) |
446 #endif | 447 #endif |
447 | 448 |
448 | 449 |
449 #ifdef __cplusplus | 450 #ifdef __cplusplus |
450 } | 451 } |
451 #endif | 452 #endif |
452 | 453 |
453 #endif /* U_DEBUG_H_ */ | 454 #endif /* U_DEBUG_H_ */ |
OLD | NEW |