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