Skip to content

Commit 19adcd1

Browse files
committed
Attempt to rebase #526 with current main
Hand-merged #526 into current main code Some basic examples compile, but `reflect.h2` doesn't yet, needs investigation I've commented out some error message emission on what appeared to be trial parses(?), because the presence of the error message stopped further processing
1 parent d2c6cb3 commit 19adcd1

File tree

4 files changed

+310
-61
lines changed

4 files changed

+310
-61
lines changed

include/cpp2util.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,17 @@ using _schar = signed char; // normally use i8 instead
368368
using _uchar = unsigned char; // normally use u8 instead
369369

370370

371+
//-----------------------------------------------------------------------
372+
//
373+
// fn_t<R(ArgTypes...)> For emitted Cpp2 function types
374+
//
375+
//-----------------------------------------------------------------------
376+
//
377+
template<typename T>
378+
requires std::is_function_v<T>
379+
using fn_t = T;
380+
381+
371382
//-----------------------------------------------------------------------
372383
//
373384
// String utilities

0 commit comments

Comments
 (0)