OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. |
3 * Copyright (C) 2007-2009 Torch Mobile, Inc. | 3 * Copyright (C) 2007-2009 Torch Mobile, Inc. |
4 * Copyright (C) 2011 University of Szeged. All rights reserved. | 4 * Copyright (C) 2011 University of Szeged. All rights reserved. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 13 matching lines...) Expand all Loading... |
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 */ | 26 */ |
27 | 27 |
28 // The vprintf_stderr_common function triggers this error in the Mac build. | 28 // The vprintf_stderr_common function triggers this error in the Mac build. |
29 // Feel free to remove this pragma if this file builds on Mac. | 29 // Feel free to remove this pragma if this file builds on Mac. |
30 // According to http://gcc.gnu.org/onlinedocs/gcc-4.2.1/gcc/Diagnostic-Pragmas.h
tml#Diagnostic-Pragmas | 30 // According to http://gcc.gnu.org/onlinedocs/gcc-4.2.1/gcc/Diagnostic-Pragmas.h
tml#Diagnostic-Pragmas |
31 // we need to place this directive before any data or functions are defined. | 31 // we need to place this directive before any data or functions are defined. |
32 #pragma GCC diagnostic ignored "-Wmissing-format-attribute" | 32 #pragma GCC diagnostic ignored "-Wmissing-format-attribute" |
33 | 33 |
34 #include "sky/engine/config.h" | |
35 #include "sky/engine/wtf/Assertions.h" | 34 #include "sky/engine/wtf/Assertions.h" |
36 | 35 |
37 #include "sky/engine/wtf/Compiler.h" | 36 #include "sky/engine/wtf/Compiler.h" |
38 #include "sky/engine/wtf/OwnPtr.h" | 37 #include "sky/engine/wtf/OwnPtr.h" |
39 #include "sky/engine/wtf/PassOwnPtr.h" | 38 #include "sky/engine/wtf/PassOwnPtr.h" |
40 | 39 |
41 #include <stdarg.h> | 40 #include <stdarg.h> |
42 #include <stdio.h> | 41 #include <stdio.h> |
43 #include <stdlib.h> | 42 #include <stdlib.h> |
44 #include <string.h> | 43 #include <string.h> |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 | 199 |
201 void WTFLogAlways(const char* format, ...) | 200 void WTFLogAlways(const char* format, ...) |
202 { | 201 { |
203 va_list args; | 202 va_list args; |
204 va_start(args, format); | 203 va_start(args, format); |
205 vprintf_stderr_with_trailing_newline(format, args); | 204 vprintf_stderr_with_trailing_newline(format, args); |
206 va_end(args); | 205 va_end(args); |
207 } | 206 } |
208 | 207 |
209 } // extern "C" | 208 } // extern "C" |
OLD | NEW |