【mbed OS5対応バージョン】データの保存、更新、取得ができるWebサービス「milkcocoa」に接続し、データのプッシュ、送信、取得ができるライブラリです。 https://mlkcca.com/
Dependents: mbed-os-example-wifi-milkcocoa MilkcocoaOsSample_Eth MilkcocoaOsSample_ESP8266 MilkcocoaOsSample_Eth_DigitalIn
MQTT/MQTTPacket/StackTrace.h@13:61e0cc093180, 2018-03-26 (annotated)
- Committer:
- jksoft
- Date:
- Mon Mar 26 04:49:20 2018 +0000
- Revision:
- 13:61e0cc093180
- Parent:
- 0:0a2f634d3324
???????????
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jksoft | 0:0a2f634d3324 | 1 | /******************************************************************************* |
jksoft | 0:0a2f634d3324 | 2 | * Copyright (c) 2014 IBM Corp. |
jksoft | 0:0a2f634d3324 | 3 | * |
jksoft | 0:0a2f634d3324 | 4 | * All rights reserved. This program and the accompanying materials |
jksoft | 0:0a2f634d3324 | 5 | * are made available under the terms of the Eclipse Public License v1.0 |
jksoft | 0:0a2f634d3324 | 6 | * and Eclipse Distribution License v1.0 which accompany this distribution. |
jksoft | 0:0a2f634d3324 | 7 | * |
jksoft | 0:0a2f634d3324 | 8 | * The Eclipse Public License is available at |
jksoft | 0:0a2f634d3324 | 9 | * http://www.eclipse.org/legal/epl-v10.html |
jksoft | 0:0a2f634d3324 | 10 | * and the Eclipse Distribution License is available at |
jksoft | 0:0a2f634d3324 | 11 | * http://www.eclipse.org/org/documents/edl-v10.php. |
jksoft | 0:0a2f634d3324 | 12 | * |
jksoft | 0:0a2f634d3324 | 13 | * Contributors: |
jksoft | 0:0a2f634d3324 | 14 | * Ian Craggs - initial API and implementation and/or initial documentation |
jksoft | 0:0a2f634d3324 | 15 | * Ian Craggs - fix for bug #434081 |
jksoft | 0:0a2f634d3324 | 16 | *******************************************************************************/ |
jksoft | 0:0a2f634d3324 | 17 | |
jksoft | 0:0a2f634d3324 | 18 | #ifndef STACKTRACE_H_ |
jksoft | 0:0a2f634d3324 | 19 | #define STACKTRACE_H_ |
jksoft | 0:0a2f634d3324 | 20 | |
jksoft | 0:0a2f634d3324 | 21 | #include <stdio.h> |
jksoft | 0:0a2f634d3324 | 22 | #define NOSTACKTRACE 1 |
jksoft | 0:0a2f634d3324 | 23 | |
jksoft | 0:0a2f634d3324 | 24 | #if defined(NOSTACKTRACE) |
jksoft | 0:0a2f634d3324 | 25 | #define FUNC_ENTRY |
jksoft | 0:0a2f634d3324 | 26 | #define FUNC_ENTRY_NOLOG |
jksoft | 0:0a2f634d3324 | 27 | #define FUNC_ENTRY_MED |
jksoft | 0:0a2f634d3324 | 28 | #define FUNC_ENTRY_MAX |
jksoft | 0:0a2f634d3324 | 29 | #define FUNC_EXIT |
jksoft | 0:0a2f634d3324 | 30 | #define FUNC_EXIT_NOLOG |
jksoft | 0:0a2f634d3324 | 31 | #define FUNC_EXIT_MED |
jksoft | 0:0a2f634d3324 | 32 | #define FUNC_EXIT_MAX |
jksoft | 0:0a2f634d3324 | 33 | #define FUNC_EXIT_RC(x) |
jksoft | 0:0a2f634d3324 | 34 | #define FUNC_EXIT_MED_RC(x) |
jksoft | 0:0a2f634d3324 | 35 | #define FUNC_EXIT_MAX_RC(x) |
jksoft | 0:0a2f634d3324 | 36 | |
jksoft | 0:0a2f634d3324 | 37 | #else |
jksoft | 0:0a2f634d3324 | 38 | |
jksoft | 0:0a2f634d3324 | 39 | #if defined(WIN32) |
jksoft | 0:0a2f634d3324 | 40 | #define inline __inline |
jksoft | 0:0a2f634d3324 | 41 | #define FUNC_ENTRY StackTrace_entry(__FUNCTION__, __LINE__, TRACE_MINIMUM) |
jksoft | 0:0a2f634d3324 | 42 | #define FUNC_ENTRY_NOLOG StackTrace_entry(__FUNCTION__, __LINE__, -1) |
jksoft | 0:0a2f634d3324 | 43 | #define FUNC_ENTRY_MED StackTrace_entry(__FUNCTION__, __LINE__, TRACE_MEDIUM) |
jksoft | 0:0a2f634d3324 | 44 | #define FUNC_ENTRY_MAX StackTrace_entry(__FUNCTION__, __LINE__, TRACE_MAXIMUM) |
jksoft | 0:0a2f634d3324 | 45 | #define FUNC_EXIT StackTrace_exit(__FUNCTION__, __LINE__, NULL, TRACE_MINIMUM) |
jksoft | 0:0a2f634d3324 | 46 | #define FUNC_EXIT_NOLOG StackTrace_exit(__FUNCTION__, __LINE__, -1) |
jksoft | 0:0a2f634d3324 | 47 | #define FUNC_EXIT_MED StackTrace_exit(__FUNCTION__, __LINE__, NULL, TRACE_MEDIUM) |
jksoft | 0:0a2f634d3324 | 48 | #define FUNC_EXIT_MAX StackTrace_exit(__FUNCTION__, __LINE__, NULL, TRACE_MAXIMUM) |
jksoft | 0:0a2f634d3324 | 49 | #define FUNC_EXIT_RC(x) StackTrace_exit(__FUNCTION__, __LINE__, &x, TRACE_MINIMUM) |
jksoft | 0:0a2f634d3324 | 50 | #define FUNC_EXIT_MED_RC(x) StackTrace_exit(__FUNCTION__, __LINE__, &x, TRACE_MEDIUM) |
jksoft | 0:0a2f634d3324 | 51 | #define FUNC_EXIT_MAX_RC(x) StackTrace_exit(__FUNCTION__, __LINE__, &x, TRACE_MAXIMUM) |
jksoft | 0:0a2f634d3324 | 52 | #else |
jksoft | 0:0a2f634d3324 | 53 | #define FUNC_ENTRY StackTrace_entry(__func__, __LINE__, TRACE_MINIMUM) |
jksoft | 0:0a2f634d3324 | 54 | #define FUNC_ENTRY_NOLOG StackTrace_entry(__func__, __LINE__, -1) |
jksoft | 0:0a2f634d3324 | 55 | #define FUNC_ENTRY_MED StackTrace_entry(__func__, __LINE__, TRACE_MEDIUM) |
jksoft | 0:0a2f634d3324 | 56 | #define FUNC_ENTRY_MAX StackTrace_entry(__func__, __LINE__, TRACE_MAXIMUM) |
jksoft | 0:0a2f634d3324 | 57 | #define FUNC_EXIT StackTrace_exit(__func__, __LINE__, NULL, TRACE_MINIMUM) |
jksoft | 0:0a2f634d3324 | 58 | #define FUNC_EXIT_NOLOG StackTrace_exit(__func__, __LINE__, NULL, -1) |
jksoft | 0:0a2f634d3324 | 59 | #define FUNC_EXIT_MED StackTrace_exit(__func__, __LINE__, NULL, TRACE_MEDIUM) |
jksoft | 0:0a2f634d3324 | 60 | #define FUNC_EXIT_MAX StackTrace_exit(__func__, __LINE__, NULL, TRACE_MAXIMUM) |
jksoft | 0:0a2f634d3324 | 61 | #define FUNC_EXIT_RC(x) StackTrace_exit(__func__, __LINE__, &x, TRACE_MINIMUM) |
jksoft | 0:0a2f634d3324 | 62 | #define FUNC_EXIT_MED_RC(x) StackTrace_exit(__func__, __LINE__, &x, TRACE_MEDIUM) |
jksoft | 0:0a2f634d3324 | 63 | #define FUNC_EXIT_MAX_RC(x) StackTrace_exit(__func__, __LINE__, &x, TRACE_MAXIMUM) |
jksoft | 0:0a2f634d3324 | 64 | |
jksoft | 0:0a2f634d3324 | 65 | void StackTrace_entry(const char* name, int line, int trace); |
jksoft | 0:0a2f634d3324 | 66 | void StackTrace_exit(const char* name, int line, void* return_value, int trace); |
jksoft | 0:0a2f634d3324 | 67 | |
jksoft | 0:0a2f634d3324 | 68 | void StackTrace_printStack(FILE* dest); |
jksoft | 0:0a2f634d3324 | 69 | char* StackTrace_get(unsigned long); |
jksoft | 0:0a2f634d3324 | 70 | |
jksoft | 0:0a2f634d3324 | 71 | #endif |
jksoft | 0:0a2f634d3324 | 72 | |
jksoft | 0:0a2f634d3324 | 73 | #endif |
jksoft | 0:0a2f634d3324 | 74 | |
jksoft | 0:0a2f634d3324 | 75 | |
jksoft | 0:0a2f634d3324 | 76 | |
jksoft | 0:0a2f634d3324 | 77 | |
jksoft | 0:0a2f634d3324 | 78 | #endif /* STACKTRACE_H_ */ |