OLD | NEW |
---|---|
1 // Copyright (c) 2009, Google Inc. | 1 // Copyright (c) 2009, Google Inc. |
2 // All rights reserved. | 2 // All rights reserved. |
3 // | 3 // |
Dai Mikurube (NOT FULLTIME)
2013/05/03 08:53:00
nit: unnecessary deletion
bulach
2013/05/07 14:55:51
Done.
| |
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 are | 5 // modification, are permitted provided that the following conditions are |
6 // met: | 6 // met: |
7 // | 7 // |
8 // * Redistributions of source code must retain the above copyright | 8 // * Redistributions of source code must retain the above copyright |
9 // notice, this list of conditions and the following disclaimer. | 9 // notice, this list of conditions and the following disclaimer. |
10 // * Redistributions in binary form must reproduce the above | 10 // * Redistributions in binary form must reproduce the above |
11 // copyright notice, this list of conditions and the following disclaimer | 11 // copyright notice, this list of conditions and the following disclaimer |
12 // in the documentation and/or other materials provided with the | 12 // in the documentation and/or other materials provided with the |
13 // distribution. | 13 // distribution. |
14 // * Neither the name of Google Inc. nor the names of its | 14 // * Neither the name of Google Inc. nor the names of its |
15 // contributors may be used to endorse or promote products derived from | 15 // contributors may be used to endorse or promote products derived from |
16 // this software without specific prior written permission. | 16 // this software without specific prior written permission. |
17 // | 17 // |
18 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | 18 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
19 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | 19 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
20 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | 20 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
21 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | 21 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
22 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | 22 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
23 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 23 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
24 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
25 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
61 # endif | 61 # endif |
62 | 62 |
63 // The PowerPC case | 63 // The PowerPC case |
64 #elif (defined(__ppc__) || defined(__PPC__)) && __GNUC__ >= 2 | 64 #elif (defined(__ppc__) || defined(__PPC__)) && __GNUC__ >= 2 |
65 # if !defined(NO_FRAME_POINTER) | 65 # if !defined(NO_FRAME_POINTER) |
66 # define STACKTRACE_INL_HEADER "stacktrace_powerpc-inl.h" | 66 # define STACKTRACE_INL_HEADER "stacktrace_powerpc-inl.h" |
67 # else | 67 # else |
68 # define STACKTRACE_INL_HEADER "stacktrace_generic-inl.h" | 68 # define STACKTRACE_INL_HEADER "stacktrace_generic-inl.h" |
69 # endif | 69 # endif |
70 | 70 |
71 // The Android case | |
72 #elif defined(__ANDROID__) | |
73 | |
Dai Mikurube (NOT FULLTIME)
2013/05/03 08:53:00
nit: how about removing the empty line (line 73)?
bulach
2013/05/07 14:55:51
Done.
| |
74 #define STACKTRACE_INL_HEADER "stacktrace_android-inl.h" | |
75 | |
71 // The ARM case | 76 // The ARM case |
72 #elif defined(__arm__) && __GNUC__ >= 2 | 77 #elif defined(__arm__) && __GNUC__ >= 2 |
73 # if !defined(NO_FRAME_POINTER) | 78 # if !defined(NO_FRAME_POINTER) |
74 # define STACKTRACE_INL_HEADER "stacktrace_arm-inl.h" | 79 # define STACKTRACE_INL_HEADER "stacktrace_arm-inl.h" |
75 # else | 80 # else |
76 # error stacktrace without frame pointer is not supported on ARM | 81 # error stacktrace without frame pointer is not supported on ARM |
77 # endif | 82 # endif |
78 | 83 |
79 // The Windows case -- probably cygwin and mingw will use one of the | 84 // The Windows case -- probably cygwin and mingw will use one of the |
80 // x86-includes above, but if not, we can fall back to windows intrinsics. | 85 // x86-includes above, but if not, we can fall back to windows intrinsics. |
81 #elif defined(_WIN32) || defined(__CYGWIN__) || defined(__CYGWIN32__) || defined (__MINGW32__) | 86 #elif defined(_WIN32) || defined(__CYGWIN__) || defined(__CYGWIN32__) || defined (__MINGW32__) |
82 # define STACKTRACE_INL_HEADER "stacktrace_win32-inl.h" | 87 # define STACKTRACE_INL_HEADER "stacktrace_win32-inl.h" |
83 | 88 |
84 #endif // all the cases | 89 #endif // all the cases |
85 #endif // BASE_STACKTRACE_CONFIG_H_ | 90 #endif // BASE_STACKTRACE_CONFIG_H_ |
OLD | NEW |