Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
mbed-os/platform/mbed_preprocessor.h@0:fb8047b156bb, 2020-01-15 (annotated)
- Committer:
- rahul_dahiya
- Date:
- Wed Jan 15 15:57:15 2020 +0530
- Revision:
- 0:fb8047b156bb
STM32F7 LWIP
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
rahul_dahiya |
0:fb8047b156bb | 1 | /** \addtogroup platform */ |
rahul_dahiya |
0:fb8047b156bb | 2 | /** @{*/ |
rahul_dahiya |
0:fb8047b156bb | 3 | /** |
rahul_dahiya |
0:fb8047b156bb | 4 | * \defgroup platform_preprocessor preprocessor macros |
rahul_dahiya |
0:fb8047b156bb | 5 | * @{ |
rahul_dahiya |
0:fb8047b156bb | 6 | */ |
rahul_dahiya |
0:fb8047b156bb | 7 | |
rahul_dahiya |
0:fb8047b156bb | 8 | /* mbed Microcontroller Library |
rahul_dahiya |
0:fb8047b156bb | 9 | * Copyright (c) 2006-2013 ARM Limited |
rahul_dahiya |
0:fb8047b156bb | 10 | * |
rahul_dahiya |
0:fb8047b156bb | 11 | * Licensed under the Apache License, Version 2.0 (the "License"); |
rahul_dahiya |
0:fb8047b156bb | 12 | * you may not use this file except in compliance with the License. |
rahul_dahiya |
0:fb8047b156bb | 13 | * You may obtain a copy of the License at |
rahul_dahiya |
0:fb8047b156bb | 14 | * |
rahul_dahiya |
0:fb8047b156bb | 15 | * http://www.apache.org/licenses/LICENSE-2.0 |
rahul_dahiya |
0:fb8047b156bb | 16 | * |
rahul_dahiya |
0:fb8047b156bb | 17 | * Unless required by applicable law or agreed to in writing, software |
rahul_dahiya |
0:fb8047b156bb | 18 | * distributed under the License is distributed on an "AS IS" BASIS, |
rahul_dahiya |
0:fb8047b156bb | 19 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
rahul_dahiya |
0:fb8047b156bb | 20 | * See the License for the specific language governing permissions and |
rahul_dahiya |
0:fb8047b156bb | 21 | * limitations under the License. |
rahul_dahiya |
0:fb8047b156bb | 22 | */ |
rahul_dahiya |
0:fb8047b156bb | 23 | #ifndef MBED_PREPROCESSOR_H |
rahul_dahiya |
0:fb8047b156bb | 24 | #define MBED_PREPROCESSOR_H |
rahul_dahiya |
0:fb8047b156bb | 25 | |
rahul_dahiya |
0:fb8047b156bb | 26 | |
rahul_dahiya |
0:fb8047b156bb | 27 | /** MBED_CONCAT |
rahul_dahiya |
0:fb8047b156bb | 28 | * Concatenate tokens together |
rahul_dahiya |
0:fb8047b156bb | 29 | * |
rahul_dahiya |
0:fb8047b156bb | 30 | * @note |
rahul_dahiya |
0:fb8047b156bb | 31 | * Expands tokens before concatenation |
rahul_dahiya |
0:fb8047b156bb | 32 | * |
rahul_dahiya |
0:fb8047b156bb | 33 | * @code |
rahul_dahiya |
0:fb8047b156bb | 34 | * // Creates a unique label based on the line number |
rahul_dahiya |
0:fb8047b156bb | 35 | * int MBED_CONCAT(UNIQUE_LABEL_, __LINE__) = 1; |
rahul_dahiya |
0:fb8047b156bb | 36 | * @endcode |
rahul_dahiya |
0:fb8047b156bb | 37 | */ |
rahul_dahiya |
0:fb8047b156bb | 38 | #define MBED_CONCAT(a, b) MBED_CONCAT_(a, b) |
rahul_dahiya |
0:fb8047b156bb | 39 | #define MBED_CONCAT_(a, b) a##b |
rahul_dahiya |
0:fb8047b156bb | 40 | |
rahul_dahiya |
0:fb8047b156bb | 41 | /** MBED_STRINGIFY |
rahul_dahiya |
0:fb8047b156bb | 42 | * Converts tokens into strings |
rahul_dahiya |
0:fb8047b156bb | 43 | * |
rahul_dahiya |
0:fb8047b156bb | 44 | * @note |
rahul_dahiya |
0:fb8047b156bb | 45 | * Expands tokens before stringification |
rahul_dahiya |
0:fb8047b156bb | 46 | * |
rahul_dahiya |
0:fb8047b156bb | 47 | * @code |
rahul_dahiya |
0:fb8047b156bb | 48 | * // Creates a string based on the parameters |
rahul_dahiya |
0:fb8047b156bb | 49 | * const char *c = MBED_STRINGIFY(This is a ridiculous way to create a string) |
rahul_dahiya |
0:fb8047b156bb | 50 | * @endcode |
rahul_dahiya |
0:fb8047b156bb | 51 | */ |
rahul_dahiya |
0:fb8047b156bb | 52 | #define MBED_STRINGIFY(a) MBED_STRINGIFY_(a) |
rahul_dahiya |
0:fb8047b156bb | 53 | #define MBED_STRINGIFY_(a) #a |
rahul_dahiya |
0:fb8047b156bb | 54 | |
rahul_dahiya |
0:fb8047b156bb | 55 | |
rahul_dahiya |
0:fb8047b156bb | 56 | #endif |
rahul_dahiya |
0:fb8047b156bb | 57 | |
rahul_dahiya |
0:fb8047b156bb | 58 | /** @}*/ |
rahul_dahiya |
0:fb8047b156bb | 59 | /** @}*/ |