SDCard version
Fork of gr-peach-opencv-project-sd-card by
platform/mbed_preprocessor.h@167:2ee3e82cb6f5, 2017-07-21 (annotated)
- Committer:
- thedo
- Date:
- Fri Jul 21 01:26:54 2017 +0000
- Revision:
- 167:2ee3e82cb6f5
gr-peach-opencv-project-sd-card
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
thedo | 167:2ee3e82cb6f5 | 1 | /** \addtogroup platform */ |
thedo | 167:2ee3e82cb6f5 | 2 | /** @{*/ |
thedo | 167:2ee3e82cb6f5 | 3 | /* mbed Microcontroller Library |
thedo | 167:2ee3e82cb6f5 | 4 | * Copyright (c) 2006-2013 ARM Limited |
thedo | 167:2ee3e82cb6f5 | 5 | * |
thedo | 167:2ee3e82cb6f5 | 6 | * Licensed under the Apache License, Version 2.0 (the "License"); |
thedo | 167:2ee3e82cb6f5 | 7 | * you may not use this file except in compliance with the License. |
thedo | 167:2ee3e82cb6f5 | 8 | * You may obtain a copy of the License at |
thedo | 167:2ee3e82cb6f5 | 9 | * |
thedo | 167:2ee3e82cb6f5 | 10 | * http://www.apache.org/licenses/LICENSE-2.0 |
thedo | 167:2ee3e82cb6f5 | 11 | * |
thedo | 167:2ee3e82cb6f5 | 12 | * Unless required by applicable law or agreed to in writing, software |
thedo | 167:2ee3e82cb6f5 | 13 | * distributed under the License is distributed on an "AS IS" BASIS, |
thedo | 167:2ee3e82cb6f5 | 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
thedo | 167:2ee3e82cb6f5 | 15 | * See the License for the specific language governing permissions and |
thedo | 167:2ee3e82cb6f5 | 16 | * limitations under the License. |
thedo | 167:2ee3e82cb6f5 | 17 | */ |
thedo | 167:2ee3e82cb6f5 | 18 | #ifndef MBED_PREPROCESSOR_H |
thedo | 167:2ee3e82cb6f5 | 19 | #define MBED_PREPROCESSOR_H |
thedo | 167:2ee3e82cb6f5 | 20 | |
thedo | 167:2ee3e82cb6f5 | 21 | |
thedo | 167:2ee3e82cb6f5 | 22 | /** MBED_CONCAT |
thedo | 167:2ee3e82cb6f5 | 23 | * Concatenate tokens together |
thedo | 167:2ee3e82cb6f5 | 24 | * |
thedo | 167:2ee3e82cb6f5 | 25 | * @note |
thedo | 167:2ee3e82cb6f5 | 26 | * Expands tokens before concatenation |
thedo | 167:2ee3e82cb6f5 | 27 | * |
thedo | 167:2ee3e82cb6f5 | 28 | * @code |
thedo | 167:2ee3e82cb6f5 | 29 | * // Creates a unique label based on the line number |
thedo | 167:2ee3e82cb6f5 | 30 | * int MBED_CONCAT(UNIQUE_LABEL_, __LINE__) = 1; |
thedo | 167:2ee3e82cb6f5 | 31 | * @endcode |
thedo | 167:2ee3e82cb6f5 | 32 | */ |
thedo | 167:2ee3e82cb6f5 | 33 | #define MBED_CONCAT(a, b) MBED_CONCAT_(a, b) |
thedo | 167:2ee3e82cb6f5 | 34 | #define MBED_CONCAT_(a, b) a##b |
thedo | 167:2ee3e82cb6f5 | 35 | |
thedo | 167:2ee3e82cb6f5 | 36 | /** MBED_STRINGIFY |
thedo | 167:2ee3e82cb6f5 | 37 | * Converts tokens into strings |
thedo | 167:2ee3e82cb6f5 | 38 | * |
thedo | 167:2ee3e82cb6f5 | 39 | * @note |
thedo | 167:2ee3e82cb6f5 | 40 | * Expands tokens before stringification |
thedo | 167:2ee3e82cb6f5 | 41 | * |
thedo | 167:2ee3e82cb6f5 | 42 | * @code |
thedo | 167:2ee3e82cb6f5 | 43 | * // Creates a string based on the parameters |
thedo | 167:2ee3e82cb6f5 | 44 | * const char *c = MBED_STRINGIFY(This is a ridiculous way to create a string) |
thedo | 167:2ee3e82cb6f5 | 45 | * @endcode |
thedo | 167:2ee3e82cb6f5 | 46 | */ |
thedo | 167:2ee3e82cb6f5 | 47 | #define MBED_STRINGIFY(a) MBED_STRINGIFY_(a) |
thedo | 167:2ee3e82cb6f5 | 48 | #define MBED_STRINGIFY_(a) #a |
thedo | 167:2ee3e82cb6f5 | 49 | |
thedo | 167:2ee3e82cb6f5 | 50 | |
thedo | 167:2ee3e82cb6f5 | 51 | #endif |
thedo | 167:2ee3e82cb6f5 | 52 | |
thedo | 167:2ee3e82cb6f5 | 53 | /** @}*/ |
thedo | 167:2ee3e82cb6f5 | 54 |