@@ -147,26 +147,35 @@ namespace n
147147#define BOOST_LEAF_P (P ) (sizeof (char [1 + detail::check_prefix(BOOST_LEAF_PRETTY_FUNCTION, P)]) - 1 )
148148 // clang style:
149149 int const p01 = BOOST_LEAF_P (" r boost::leaf::n::p() [T = " );
150+ int const p02 = BOOST_LEAF_P (" r __cdecl boost::leaf::n::p(void) [T = " );
151+ int const p03 = BOOST_LEAF_P (" r __stdcall boost::leaf::n::p(void) [T = " );
152+ int const p04 = BOOST_LEAF_P (" r __fastcall boost::leaf::n::p(void) [T = " );
150153 // old clang style:
151- int const p02 = BOOST_LEAF_P (" boost::leaf::n::r boost::leaf::n::p() [T = " );
154+ int const p05 = BOOST_LEAF_P (" boost::leaf::n::r boost::leaf::n::p() [T = " );
155+ int const p06 = BOOST_LEAF_P (" boost::leaf::n::r __cdecl boost::leaf::n::p(void) [T = " );
156+ int const p07 = BOOST_LEAF_P (" boost::leaf::n::r __stdcall boost::leaf::n::p(void) [T = " );
157+ int const p08 = BOOST_LEAF_P (" boost::leaf::n::r __fastcall boost::leaf::n::p(void) [T = " );
152158 // gcc style:
153- int const p03 = BOOST_LEAF_P (" boost::leaf::n::r boost::leaf::n::p() [with T = " );
159+ int const p09 = BOOST_LEAF_P (" boost::leaf::n::r boost::leaf::n::p() [with T = " );
160+ int const p10 = BOOST_LEAF_P (" boost::leaf::n::r __cdecl boost::leaf::n::p() [with T = " );
161+ int const p11 = BOOST_LEAF_P (" boost::leaf::n::r __stdcall boost::leaf::n::p() [with T = " );
162+ int const p12 = BOOST_LEAF_P (" boost::leaf::n::r __fastcall boost::leaf::n::p() [with T = " );
154163 // msvc style, struct:
155- int const p04 = BOOST_LEAF_P (" struct boost::leaf::n::r __cdecl boost::leaf::n::p<struct " );
156- int const p05 = BOOST_LEAF_P (" struct boost::leaf::n::r __stdcall boost::leaf::n::p<struct " );
157- int const p06 = BOOST_LEAF_P (" struct boost::leaf::n::r __fastcall boost::leaf::n::p<struct " );
164+ int const p13 = BOOST_LEAF_P (" struct boost::leaf::n::r __cdecl boost::leaf::n::p<struct " );
165+ int const p14 = BOOST_LEAF_P (" struct boost::leaf::n::r __stdcall boost::leaf::n::p<struct " );
166+ int const p15 = BOOST_LEAF_P (" struct boost::leaf::n::r __fastcall boost::leaf::n::p<struct " );
158167 // msvc style, class:
159- int const p07 = BOOST_LEAF_P (" struct boost::leaf::n::r __cdecl boost::leaf::n::p<class " );
160- int const p08 = BOOST_LEAF_P (" struct boost::leaf::n::r __stdcall boost::leaf::n::p<class " );
161- int const p09 = BOOST_LEAF_P (" struct boost::leaf::n::r __fastcall boost::leaf::n::p<class " );
168+ int const p16 = BOOST_LEAF_P (" struct boost::leaf::n::r __cdecl boost::leaf::n::p<class " );
169+ int const p17 = BOOST_LEAF_P (" struct boost::leaf::n::r __stdcall boost::leaf::n::p<class " );
170+ int const p18 = BOOST_LEAF_P (" struct boost::leaf::n::r __fastcall boost::leaf::n::p<class " );
162171 // msvc style, enum:
163- int const p10 = BOOST_LEAF_P (" struct boost::leaf::n::r __cdecl boost::leaf::n::p<enum " );
164- int const p11 = BOOST_LEAF_P (" struct boost::leaf::n::r __stdcall boost::leaf::n::p<enum " );
165- int const p12 = BOOST_LEAF_P (" struct boost::leaf::n::r __fastcall boost::leaf::n::p<enum " );
172+ int const p19 = BOOST_LEAF_P (" struct boost::leaf::n::r __cdecl boost::leaf::n::p<enum " );
173+ int const p20 = BOOST_LEAF_P (" struct boost::leaf::n::r __stdcall boost::leaf::n::p<enum " );
174+ int const p21 = BOOST_LEAF_P (" struct boost::leaf::n::r __fastcall boost::leaf::n::p<enum " );
166175 // msvc style, built-in type:
167- int const p13 = BOOST_LEAF_P (" struct boost::leaf::n::r __cdecl boost::leaf::n::p<" );
168- int const p14 = BOOST_LEAF_P (" struct boost::leaf::n::r __stdcall boost::leaf::n::p<" );
169- int const p15 = BOOST_LEAF_P (" struct boost::leaf::n::r __fastcall boost::leaf::n::p<" );
176+ int const p22 = BOOST_LEAF_P (" struct boost::leaf::n::r __cdecl boost::leaf::n::p<" );
177+ int const p23 = BOOST_LEAF_P (" struct boost::leaf::n::r __stdcall boost::leaf::n::p<" );
178+ int const p24 = BOOST_LEAF_P (" struct boost::leaf::n::r __fastcall boost::leaf::n::p<" );
170179#undef BOOST_LEAF_P
171180
172181#define BOOST_LEAF_S (S ) (sizeof (char [1 + detail::check_suffix(BOOST_LEAF_PRETTY_FUNCTION, S)]) - 1 )
@@ -178,22 +187,22 @@ namespace n
178187
179188 char static_assert_unrecognized_pretty_function_format_please_file_github_issue[sizeof (
180189 char [
181- (s01 && (1 == (!!p01 + !!p02 + !!p03)))
190+ (s01 && (1 == (!!p01 + !!p02 + !!p03 + !!p04 + !!p05 + !!p06 + !!p07 + !!p08 + !!p09 + !!p10 + !!p11 + !!p12 )))
182191 ||
183- (s02 && (1 == (!!p04 + !!p05 + !!p06 + !!p07 + !!p08 + !!p09 + !!p10 + !!p11 + !!p12 )))
192+ (s02 && (1 == (!!p13 + !!p14 + !!p15 + !!p16 + !!p17 + !!p18 + !!p19 + !!p20 + !!p21 )))
184193 ||
185- (s02 && (1 == (!!p13 + !!p14 + !!p15 )))
194+ (s02 && (1 == (!!p22 + !!p23 + !!p24 )))
186195 ]
187196 ) * 2 - 1 ];
188197 (void ) static_assert_unrecognized_pretty_function_format_please_file_github_issue;
189198
190- if ( int const p = sizeof (char [1 + !!s01 * (p01 + p02 + p03)]) - 1 )
199+ if ( int const p = sizeof (char [1 + !!s01 * (p01 + p02 + p03 + p04 + p05 + p06 + p07 + p08 + p09 + p10 + p11 + p12 )]) - 1 )
191200 return { BOOST_LEAF_PRETTY_FUNCTION + p, s01 - p };
192201
193- if ( int const p = sizeof (char [1 + !!s02 * (p04 + p05 + p06 + p07 + p08 + p09 + p10 + p11 + p12 )]) - 1 )
202+ if ( int const p = sizeof (char [1 + !!s02 * (p13 + p14 + p15 + p16 + p17 + p18 + p19 + p20 + p21 )]) - 1 )
194203 return { BOOST_LEAF_PRETTY_FUNCTION + p, s02 - p };
195204
196- int const p = sizeof (char [1 + !!s02 * (p13 + p14 + p15 )]) - 1 ; // p is not zero, we've static asserted the hell out of it
205+ int const p = sizeof (char [1 + !!s02 * (p22 + p23 + p24 )]) - 1 ; // p is not zero, we've static asserted the hell out of it
197206 return { BOOST_LEAF_PRETTY_FUNCTION + p, s02 - p };
198207 }
199208}
0 commit comments