mbed library sources. Supersedes mbed-src.
Dependents: Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more
Diff: platform/mbed_debug.h
- Revision:
- 189:f392fc9709a3
- Parent:
- 187:0387e8f68319
--- a/platform/mbed_debug.h Thu Nov 08 11:46:34 2018 +0000 +++ b/platform/mbed_debug.h Wed Feb 20 22:31:08 2019 +0000 @@ -8,6 +8,7 @@ /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,11 +28,14 @@ #include <stdio.h> #include <stdarg.h> #endif +#include "mbed_toolchain.h" #ifdef __cplusplus extern "C" { #endif +static inline void debug(const char *format, ...) MBED_PRINTF(1, 2); +static inline void debug_if(int condition, const char *format, ...) MBED_PRINTF(2, 3); /** Output a debug message *