Skip to content

feat: Support function types - an attempt to rebase #526 with current main #1177

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions include/cpp2util.h
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,17 @@ using _schar = signed char; // normally use i8 instead
using _uchar = unsigned char; // normally use u8 instead


//-----------------------------------------------------------------------
//
// fn_t<R(ArgTypes...)> For emitted Cpp2 function types
//
//-----------------------------------------------------------------------
//
template<typename T>
requires std::is_function_v<T>
using fn_t = T;


//-----------------------------------------------------------------------
//
// String utilities
Expand Down
Loading
Loading