| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2012 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 #include <stdarg.h> | 33 #include <stdarg.h> |
| 34 #include <stdio.h> | 34 #include <stdio.h> |
| 35 | 35 |
| 36 namespace WTF { | 36 namespace WTF { |
| 37 | 37 |
| 38 FilePrintStream& dataFile(); | 38 FilePrintStream& dataFile(); |
| 39 | 39 |
| 40 WTF_EXPORT void dataLogFV(const char* format, va_list) WTF_ATTRIBUTE_PRINTF(1, 0
); | 40 WTF_EXPORT void dataLogFV(const char* format, va_list) WTF_ATTRIBUTE_PRINTF(1, 0
); |
| 41 WTF_EXPORT void dataLogF(const char* format, ...) WTF_ATTRIBUTE_PRINTF(1, 2); | 41 WTF_EXPORT void dataLogF(const char* format, ...) WTF_ATTRIBUTE_PRINTF(1, 2); |
| 42 WTF_EXPORT void dataLogFString(const char*); | |
| 43 | 42 |
| 44 template<typename... T> | 43 template<typename... T> |
| 45 void dataLog(const T&... values) | 44 void dataLog(const T&... values) |
| 46 { | 45 { |
| 47 dataFile().print(values...); | 46 dataFile().print(values...); |
| 48 } | 47 } |
| 49 | 48 |
| 50 } // namespace WTF | 49 } // namespace WTF |
| 51 | 50 |
| 52 using WTF::dataLog; | 51 using WTF::dataLog; |
| 53 using WTF::dataLogF; | 52 using WTF::dataLogF; |
| 54 using WTF::dataLogFString; | |
| 55 | 53 |
| 56 #endif // DataLog_h | 54 #endif // DataLog_h |
| 57 | 55 |
| OLD | NEW |