Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: src/gallium/auxiliary/util/u_debug.h

Issue 18570002: Can't #define assert() before including assert.h on Android (Closed) Base URL: https://src.chromium.org/chrome/trunk/deps/third_party/mesa/
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_ */
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698