messagepack implementation for embedded systems (mbed / arduino)

Dependents:   hello_message_pack

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers slot3.hpp Source File

slot3.hpp

00001 # /* **************************************************************************
00002 #  *                                                                          *
00003 #  *     (C) Copyright Paul Mensonides 2002.
00004 #  *     Distributed under the Boost Software License, Version 1.0. (See
00005 #  *     accompanying file LICENSE_1_0.txt or copy at
00006 #  *     http://www.boost.org/LICENSE_1_0.txt)
00007 #  *                                                                          *
00008 #  ************************************************************************** */
00009 #
00010 # /* See http://www.boost.org for most recent version. */
00011 #
00012 # include <msgpack/preprocessor/slot/detail/shared.hpp>
00013 #
00014 # undef MSGPACK_PP_SLOT_3
00015 #
00016 # undef MSGPACK_PP_SLOT_3_DIGIT_1
00017 # undef MSGPACK_PP_SLOT_3_DIGIT_2
00018 # undef MSGPACK_PP_SLOT_3_DIGIT_3
00019 # undef MSGPACK_PP_SLOT_3_DIGIT_4
00020 # undef MSGPACK_PP_SLOT_3_DIGIT_5
00021 # undef MSGPACK_PP_SLOT_3_DIGIT_6
00022 # undef MSGPACK_PP_SLOT_3_DIGIT_7
00023 # undef MSGPACK_PP_SLOT_3_DIGIT_8
00024 # undef MSGPACK_PP_SLOT_3_DIGIT_9
00025 # undef MSGPACK_PP_SLOT_3_DIGIT_10
00026 #
00027 # if MSGPACK_PP_SLOT_TEMP_10 == 0
00028 #    define MSGPACK_PP_SLOT_3_DIGIT_10 0
00029 # elif MSGPACK_PP_SLOT_TEMP_10 == 1
00030 #    define MSGPACK_PP_SLOT_3_DIGIT_10 1
00031 # elif MSGPACK_PP_SLOT_TEMP_10 == 2
00032 #    define MSGPACK_PP_SLOT_3_DIGIT_10 2
00033 # elif MSGPACK_PP_SLOT_TEMP_10 == 3
00034 #    define MSGPACK_PP_SLOT_3_DIGIT_10 3
00035 # elif MSGPACK_PP_SLOT_TEMP_10 == 4
00036 #    define MSGPACK_PP_SLOT_3_DIGIT_10 4
00037 # elif MSGPACK_PP_SLOT_TEMP_10 == 5
00038 #    define MSGPACK_PP_SLOT_3_DIGIT_10 5
00039 # elif MSGPACK_PP_SLOT_TEMP_10 == 6
00040 #    define MSGPACK_PP_SLOT_3_DIGIT_10 6
00041 # elif MSGPACK_PP_SLOT_TEMP_10 == 7
00042 #    define MSGPACK_PP_SLOT_3_DIGIT_10 7
00043 # elif MSGPACK_PP_SLOT_TEMP_10 == 8
00044 #    define MSGPACK_PP_SLOT_3_DIGIT_10 8
00045 # elif MSGPACK_PP_SLOT_TEMP_10 == 9
00046 #    define MSGPACK_PP_SLOT_3_DIGIT_10 9
00047 # endif
00048 #
00049 # if MSGPACK_PP_SLOT_TEMP_9 == 0
00050 #    define MSGPACK_PP_SLOT_3_DIGIT_9 0
00051 # elif MSGPACK_PP_SLOT_TEMP_9 == 1
00052 #    define MSGPACK_PP_SLOT_3_DIGIT_9 1
00053 # elif MSGPACK_PP_SLOT_TEMP_9 == 2
00054 #    define MSGPACK_PP_SLOT_3_DIGIT_9 2
00055 # elif MSGPACK_PP_SLOT_TEMP_9 == 3
00056 #    define MSGPACK_PP_SLOT_3_DIGIT_9 3
00057 # elif MSGPACK_PP_SLOT_TEMP_9 == 4
00058 #    define MSGPACK_PP_SLOT_3_DIGIT_9 4
00059 # elif MSGPACK_PP_SLOT_TEMP_9 == 5
00060 #    define MSGPACK_PP_SLOT_3_DIGIT_9 5
00061 # elif MSGPACK_PP_SLOT_TEMP_9 == 6
00062 #    define MSGPACK_PP_SLOT_3_DIGIT_9 6
00063 # elif MSGPACK_PP_SLOT_TEMP_9 == 7
00064 #    define MSGPACK_PP_SLOT_3_DIGIT_9 7
00065 # elif MSGPACK_PP_SLOT_TEMP_9 == 8
00066 #    define MSGPACK_PP_SLOT_3_DIGIT_9 8
00067 # elif MSGPACK_PP_SLOT_TEMP_9 == 9
00068 #    define MSGPACK_PP_SLOT_3_DIGIT_9 9
00069 # endif
00070 #
00071 # if MSGPACK_PP_SLOT_TEMP_8 == 0
00072 #    define MSGPACK_PP_SLOT_3_DIGIT_8 0
00073 # elif MSGPACK_PP_SLOT_TEMP_8 == 1
00074 #    define MSGPACK_PP_SLOT_3_DIGIT_8 1
00075 # elif MSGPACK_PP_SLOT_TEMP_8 == 2
00076 #    define MSGPACK_PP_SLOT_3_DIGIT_8 2
00077 # elif MSGPACK_PP_SLOT_TEMP_8 == 3
00078 #    define MSGPACK_PP_SLOT_3_DIGIT_8 3
00079 # elif MSGPACK_PP_SLOT_TEMP_8 == 4
00080 #    define MSGPACK_PP_SLOT_3_DIGIT_8 4
00081 # elif MSGPACK_PP_SLOT_TEMP_8 == 5
00082 #    define MSGPACK_PP_SLOT_3_DIGIT_8 5
00083 # elif MSGPACK_PP_SLOT_TEMP_8 == 6
00084 #    define MSGPACK_PP_SLOT_3_DIGIT_8 6
00085 # elif MSGPACK_PP_SLOT_TEMP_8 == 7
00086 #    define MSGPACK_PP_SLOT_3_DIGIT_8 7
00087 # elif MSGPACK_PP_SLOT_TEMP_8 == 8
00088 #    define MSGPACK_PP_SLOT_3_DIGIT_8 8
00089 # elif MSGPACK_PP_SLOT_TEMP_8 == 9
00090 #    define MSGPACK_PP_SLOT_3_DIGIT_8 9
00091 # endif
00092 #
00093 # if MSGPACK_PP_SLOT_TEMP_7 == 0
00094 #    define MSGPACK_PP_SLOT_3_DIGIT_7 0
00095 # elif MSGPACK_PP_SLOT_TEMP_7 == 1
00096 #    define MSGPACK_PP_SLOT_3_DIGIT_7 1
00097 # elif MSGPACK_PP_SLOT_TEMP_7 == 2
00098 #    define MSGPACK_PP_SLOT_3_DIGIT_7 2
00099 # elif MSGPACK_PP_SLOT_TEMP_7 == 3
00100 #    define MSGPACK_PP_SLOT_3_DIGIT_7 3
00101 # elif MSGPACK_PP_SLOT_TEMP_7 == 4
00102 #    define MSGPACK_PP_SLOT_3_DIGIT_7 4
00103 # elif MSGPACK_PP_SLOT_TEMP_7 == 5
00104 #    define MSGPACK_PP_SLOT_3_DIGIT_7 5
00105 # elif MSGPACK_PP_SLOT_TEMP_7 == 6
00106 #    define MSGPACK_PP_SLOT_3_DIGIT_7 6
00107 # elif MSGPACK_PP_SLOT_TEMP_7 == 7
00108 #    define MSGPACK_PP_SLOT_3_DIGIT_7 7
00109 # elif MSGPACK_PP_SLOT_TEMP_7 == 8
00110 #    define MSGPACK_PP_SLOT_3_DIGIT_7 8
00111 # elif MSGPACK_PP_SLOT_TEMP_7 == 9
00112 #    define MSGPACK_PP_SLOT_3_DIGIT_7 9
00113 # endif
00114 #
00115 # if MSGPACK_PP_SLOT_TEMP_6 == 0
00116 #    define MSGPACK_PP_SLOT_3_DIGIT_6 0
00117 # elif MSGPACK_PP_SLOT_TEMP_6 == 1
00118 #    define MSGPACK_PP_SLOT_3_DIGIT_6 1
00119 # elif MSGPACK_PP_SLOT_TEMP_6 == 2
00120 #    define MSGPACK_PP_SLOT_3_DIGIT_6 2
00121 # elif MSGPACK_PP_SLOT_TEMP_6 == 3
00122 #    define MSGPACK_PP_SLOT_3_DIGIT_6 3
00123 # elif MSGPACK_PP_SLOT_TEMP_6 == 4
00124 #    define MSGPACK_PP_SLOT_3_DIGIT_6 4
00125 # elif MSGPACK_PP_SLOT_TEMP_6 == 5
00126 #    define MSGPACK_PP_SLOT_3_DIGIT_6 5
00127 # elif MSGPACK_PP_SLOT_TEMP_6 == 6
00128 #    define MSGPACK_PP_SLOT_3_DIGIT_6 6
00129 # elif MSGPACK_PP_SLOT_TEMP_6 == 7
00130 #    define MSGPACK_PP_SLOT_3_DIGIT_6 7
00131 # elif MSGPACK_PP_SLOT_TEMP_6 == 8
00132 #    define MSGPACK_PP_SLOT_3_DIGIT_6 8
00133 # elif MSGPACK_PP_SLOT_TEMP_6 == 9
00134 #    define MSGPACK_PP_SLOT_3_DIGIT_6 9
00135 # endif
00136 #
00137 # if MSGPACK_PP_SLOT_TEMP_5 == 0
00138 #    define MSGPACK_PP_SLOT_3_DIGIT_5 0
00139 # elif MSGPACK_PP_SLOT_TEMP_5 == 1
00140 #    define MSGPACK_PP_SLOT_3_DIGIT_5 1
00141 # elif MSGPACK_PP_SLOT_TEMP_5 == 2
00142 #    define MSGPACK_PP_SLOT_3_DIGIT_5 2
00143 # elif MSGPACK_PP_SLOT_TEMP_5 == 3
00144 #    define MSGPACK_PP_SLOT_3_DIGIT_5 3
00145 # elif MSGPACK_PP_SLOT_TEMP_5 == 4
00146 #    define MSGPACK_PP_SLOT_3_DIGIT_5 4
00147 # elif MSGPACK_PP_SLOT_TEMP_5 == 5
00148 #    define MSGPACK_PP_SLOT_3_DIGIT_5 5
00149 # elif MSGPACK_PP_SLOT_TEMP_5 == 6
00150 #    define MSGPACK_PP_SLOT_3_DIGIT_5 6
00151 # elif MSGPACK_PP_SLOT_TEMP_5 == 7
00152 #    define MSGPACK_PP_SLOT_3_DIGIT_5 7
00153 # elif MSGPACK_PP_SLOT_TEMP_5 == 8
00154 #    define MSGPACK_PP_SLOT_3_DIGIT_5 8
00155 # elif MSGPACK_PP_SLOT_TEMP_5 == 9
00156 #    define MSGPACK_PP_SLOT_3_DIGIT_5 9
00157 # endif
00158 #
00159 # if MSGPACK_PP_SLOT_TEMP_4 == 0
00160 #    define MSGPACK_PP_SLOT_3_DIGIT_4 0
00161 # elif MSGPACK_PP_SLOT_TEMP_4 == 1
00162 #    define MSGPACK_PP_SLOT_3_DIGIT_4 1
00163 # elif MSGPACK_PP_SLOT_TEMP_4 == 2
00164 #    define MSGPACK_PP_SLOT_3_DIGIT_4 2
00165 # elif MSGPACK_PP_SLOT_TEMP_4 == 3
00166 #    define MSGPACK_PP_SLOT_3_DIGIT_4 3
00167 # elif MSGPACK_PP_SLOT_TEMP_4 == 4
00168 #    define MSGPACK_PP_SLOT_3_DIGIT_4 4
00169 # elif MSGPACK_PP_SLOT_TEMP_4 == 5
00170 #    define MSGPACK_PP_SLOT_3_DIGIT_4 5
00171 # elif MSGPACK_PP_SLOT_TEMP_4 == 6
00172 #    define MSGPACK_PP_SLOT_3_DIGIT_4 6
00173 # elif MSGPACK_PP_SLOT_TEMP_4 == 7
00174 #    define MSGPACK_PP_SLOT_3_DIGIT_4 7
00175 # elif MSGPACK_PP_SLOT_TEMP_4 == 8
00176 #    define MSGPACK_PP_SLOT_3_DIGIT_4 8
00177 # elif MSGPACK_PP_SLOT_TEMP_4 == 9
00178 #    define MSGPACK_PP_SLOT_3_DIGIT_4 9
00179 # endif
00180 #
00181 # if MSGPACK_PP_SLOT_TEMP_3 == 0
00182 #    define MSGPACK_PP_SLOT_3_DIGIT_3 0
00183 # elif MSGPACK_PP_SLOT_TEMP_3 == 1
00184 #    define MSGPACK_PP_SLOT_3_DIGIT_3 1
00185 # elif MSGPACK_PP_SLOT_TEMP_3 == 2
00186 #    define MSGPACK_PP_SLOT_3_DIGIT_3 2
00187 # elif MSGPACK_PP_SLOT_TEMP_3 == 3
00188 #    define MSGPACK_PP_SLOT_3_DIGIT_3 3
00189 # elif MSGPACK_PP_SLOT_TEMP_3 == 4
00190 #    define MSGPACK_PP_SLOT_3_DIGIT_3 4
00191 # elif MSGPACK_PP_SLOT_TEMP_3 == 5
00192 #    define MSGPACK_PP_SLOT_3_DIGIT_3 5
00193 # elif MSGPACK_PP_SLOT_TEMP_3 == 6
00194 #    define MSGPACK_PP_SLOT_3_DIGIT_3 6
00195 # elif MSGPACK_PP_SLOT_TEMP_3 == 7
00196 #    define MSGPACK_PP_SLOT_3_DIGIT_3 7
00197 # elif MSGPACK_PP_SLOT_TEMP_3 == 8
00198 #    define MSGPACK_PP_SLOT_3_DIGIT_3 8
00199 # elif MSGPACK_PP_SLOT_TEMP_3 == 9
00200 #    define MSGPACK_PP_SLOT_3_DIGIT_3 9
00201 # endif
00202 #
00203 # if MSGPACK_PP_SLOT_TEMP_2 == 0
00204 #    define MSGPACK_PP_SLOT_3_DIGIT_2 0
00205 # elif MSGPACK_PP_SLOT_TEMP_2 == 1
00206 #    define MSGPACK_PP_SLOT_3_DIGIT_2 1
00207 # elif MSGPACK_PP_SLOT_TEMP_2 == 2
00208 #    define MSGPACK_PP_SLOT_3_DIGIT_2 2
00209 # elif MSGPACK_PP_SLOT_TEMP_2 == 3
00210 #    define MSGPACK_PP_SLOT_3_DIGIT_2 3
00211 # elif MSGPACK_PP_SLOT_TEMP_2 == 4
00212 #    define MSGPACK_PP_SLOT_3_DIGIT_2 4
00213 # elif MSGPACK_PP_SLOT_TEMP_2 == 5
00214 #    define MSGPACK_PP_SLOT_3_DIGIT_2 5
00215 # elif MSGPACK_PP_SLOT_TEMP_2 == 6
00216 #    define MSGPACK_PP_SLOT_3_DIGIT_2 6
00217 # elif MSGPACK_PP_SLOT_TEMP_2 == 7
00218 #    define MSGPACK_PP_SLOT_3_DIGIT_2 7
00219 # elif MSGPACK_PP_SLOT_TEMP_2 == 8
00220 #    define MSGPACK_PP_SLOT_3_DIGIT_2 8
00221 # elif MSGPACK_PP_SLOT_TEMP_2 == 9
00222 #    define MSGPACK_PP_SLOT_3_DIGIT_2 9
00223 # endif
00224 #
00225 # if MSGPACK_PP_SLOT_TEMP_1 == 0
00226 #    define MSGPACK_PP_SLOT_3_DIGIT_1 0
00227 # elif MSGPACK_PP_SLOT_TEMP_1 == 1
00228 #    define MSGPACK_PP_SLOT_3_DIGIT_1 1
00229 # elif MSGPACK_PP_SLOT_TEMP_1 == 2
00230 #    define MSGPACK_PP_SLOT_3_DIGIT_1 2
00231 # elif MSGPACK_PP_SLOT_TEMP_1 == 3
00232 #    define MSGPACK_PP_SLOT_3_DIGIT_1 3
00233 # elif MSGPACK_PP_SLOT_TEMP_1 == 4
00234 #    define MSGPACK_PP_SLOT_3_DIGIT_1 4
00235 # elif MSGPACK_PP_SLOT_TEMP_1 == 5
00236 #    define MSGPACK_PP_SLOT_3_DIGIT_1 5
00237 # elif MSGPACK_PP_SLOT_TEMP_1 == 6
00238 #    define MSGPACK_PP_SLOT_3_DIGIT_1 6
00239 # elif MSGPACK_PP_SLOT_TEMP_1 == 7
00240 #    define MSGPACK_PP_SLOT_3_DIGIT_1 7
00241 # elif MSGPACK_PP_SLOT_TEMP_1 == 8
00242 #    define MSGPACK_PP_SLOT_3_DIGIT_1 8
00243 # elif MSGPACK_PP_SLOT_TEMP_1 == 9
00244 #    define MSGPACK_PP_SLOT_3_DIGIT_1 9
00245 # endif
00246 #
00247 # if MSGPACK_PP_SLOT_3_DIGIT_10
00248 #    define MSGPACK_PP_SLOT_3() MSGPACK_PP_SLOT_CC_10(MSGPACK_PP_SLOT_3_DIGIT_10, MSGPACK_PP_SLOT_3_DIGIT_9, MSGPACK_PP_SLOT_3_DIGIT_8, MSGPACK_PP_SLOT_3_DIGIT_7, MSGPACK_PP_SLOT_3_DIGIT_6, MSGPACK_PP_SLOT_3_DIGIT_5, MSGPACK_PP_SLOT_3_DIGIT_4, MSGPACK_PP_SLOT_3_DIGIT_3, MSGPACK_PP_SLOT_3_DIGIT_2, MSGPACK_PP_SLOT_3_DIGIT_1)
00249 # elif MSGPACK_PP_SLOT_3_DIGIT_9
00250 #    define MSGPACK_PP_SLOT_3() MSGPACK_PP_SLOT_CC_9(MSGPACK_PP_SLOT_3_DIGIT_9, MSGPACK_PP_SLOT_3_DIGIT_8, MSGPACK_PP_SLOT_3_DIGIT_7, MSGPACK_PP_SLOT_3_DIGIT_6, MSGPACK_PP_SLOT_3_DIGIT_5, MSGPACK_PP_SLOT_3_DIGIT_4, MSGPACK_PP_SLOT_3_DIGIT_3, MSGPACK_PP_SLOT_3_DIGIT_2, MSGPACK_PP_SLOT_3_DIGIT_1)
00251 # elif MSGPACK_PP_SLOT_3_DIGIT_8
00252 #    define MSGPACK_PP_SLOT_3() MSGPACK_PP_SLOT_CC_8(MSGPACK_PP_SLOT_3_DIGIT_8, MSGPACK_PP_SLOT_3_DIGIT_7, MSGPACK_PP_SLOT_3_DIGIT_6, MSGPACK_PP_SLOT_3_DIGIT_5, MSGPACK_PP_SLOT_3_DIGIT_4, MSGPACK_PP_SLOT_3_DIGIT_3, MSGPACK_PP_SLOT_3_DIGIT_2, MSGPACK_PP_SLOT_3_DIGIT_1)
00253 # elif MSGPACK_PP_SLOT_3_DIGIT_7
00254 #    define MSGPACK_PP_SLOT_3() MSGPACK_PP_SLOT_CC_7(MSGPACK_PP_SLOT_3_DIGIT_7, MSGPACK_PP_SLOT_3_DIGIT_6, MSGPACK_PP_SLOT_3_DIGIT_5, MSGPACK_PP_SLOT_3_DIGIT_4, MSGPACK_PP_SLOT_3_DIGIT_3, MSGPACK_PP_SLOT_3_DIGIT_2, MSGPACK_PP_SLOT_3_DIGIT_1)
00255 # elif MSGPACK_PP_SLOT_3_DIGIT_6
00256 #    define MSGPACK_PP_SLOT_3() MSGPACK_PP_SLOT_CC_6(MSGPACK_PP_SLOT_3_DIGIT_6, MSGPACK_PP_SLOT_3_DIGIT_5, MSGPACK_PP_SLOT_3_DIGIT_4, MSGPACK_PP_SLOT_3_DIGIT_3, MSGPACK_PP_SLOT_3_DIGIT_2, MSGPACK_PP_SLOT_3_DIGIT_1)
00257 # elif MSGPACK_PP_SLOT_3_DIGIT_5
00258 #    define MSGPACK_PP_SLOT_3() MSGPACK_PP_SLOT_CC_5(MSGPACK_PP_SLOT_3_DIGIT_5, MSGPACK_PP_SLOT_3_DIGIT_4, MSGPACK_PP_SLOT_3_DIGIT_3, MSGPACK_PP_SLOT_3_DIGIT_2, MSGPACK_PP_SLOT_3_DIGIT_1)
00259 # elif MSGPACK_PP_SLOT_3_DIGIT_4
00260 #    define MSGPACK_PP_SLOT_3() MSGPACK_PP_SLOT_CC_4(MSGPACK_PP_SLOT_3_DIGIT_4, MSGPACK_PP_SLOT_3_DIGIT_3, MSGPACK_PP_SLOT_3_DIGIT_2, MSGPACK_PP_SLOT_3_DIGIT_1)
00261 # elif MSGPACK_PP_SLOT_3_DIGIT_3
00262 #    define MSGPACK_PP_SLOT_3() MSGPACK_PP_SLOT_CC_3(MSGPACK_PP_SLOT_3_DIGIT_3, MSGPACK_PP_SLOT_3_DIGIT_2, MSGPACK_PP_SLOT_3_DIGIT_1)
00263 # elif MSGPACK_PP_SLOT_3_DIGIT_2
00264 #    define MSGPACK_PP_SLOT_3() MSGPACK_PP_SLOT_CC_2(MSGPACK_PP_SLOT_3_DIGIT_2, MSGPACK_PP_SLOT_3_DIGIT_1)
00265 # else
00266 #    define MSGPACK_PP_SLOT_3() MSGPACK_PP_SLOT_3_DIGIT_1
00267 # endif