projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2b89c4
)
util: Add __declspec(noreturn) to _debug_assert_fail().
author
José Fonseca
<jfonseca@vmware.com>
Wed, 16 Apr 2014 16:45:56 +0000
(17:45 +0100)
committer
José Fonseca
<jfonseca@vmware.com>
Thu, 17 Apr 2014 08:56:49 +0000
(09:56 +0100)
Mostly for consistency; as MSVC's static source code analysis doesn't
seem to rely on assertions, but instead on different kind of source
annotations( http://msdn.microsoft.com/en-us/library/hh916383.aspx ).
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/util/u_debug.h
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_debug.h
b/src/gallium/auxiliary/util/u_debug.h
index 857059730d946992b607632ddada0a921fb1a65d..9c414211b3fc43dc777347618d727ebbf232a908 100644
(file)
--- a/
src/gallium/auxiliary/util/u_debug.h
+++ b/
src/gallium/auxiliary/util/u_debug.h
@@
-151,6
+151,9
@@
void debug_print_format(const char *msg, unsigned fmt );
long
debug_get_num_option(const char *name, long dfault);
+#ifdef _MSC_VER
+__declspec(noreturn)
+#endif
void _debug_assert_fail(const char *expr,
const char *file,
unsigned line,