Skip to content

Commit

Permalink
refactor(util): remove old UFCS branch
Browse files Browse the repository at this point in the history
  • Loading branch information
JohelEGP committed Oct 28, 2023
1 parent 2db6c00 commit 36cccf5
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions include/cpp2util.h
Original file line number Diff line number Diff line change
Expand Up @@ -799,24 +799,10 @@ class out {
} \
}

#if 1 // When not rebasing, enable this branch.
#define CPP2_UFCS(...) CPP2_UFCS_(&,,__VA_ARGS__)
#define CPP2_UFCS_TEMPLATE(...) CPP2_UFCS_(&,template,__VA_ARGS__)
#define CPP2_UFCS_NONLOCAL(...) CPP2_UFCS_(,,__VA_ARGS__)
#define CPP2_UFCS_TEMPLATE_NONLOCAL(...) CPP2_UFCS_(,template,__VA_ARGS__)
#else // When rebasing, enable this branch.
// `git restore --staged` and `git restore` conflicting sources.
// Compile `cppfront`. Regenerate conflicting sources. Disable this branch. Complete rebase.
#define CPP2_UFCS_REMPARENS(...) __VA_ARGS__
#define CPP2_UFCS(FUNCNAME,PARAM1,...) CPP2_UFCS_(&,,FUNCNAME)(PARAM1,__VA_ARGS__)
#define CPP2_UFCS_0(FUNCNAME,PARAM1) CPP2_UFCS_(&,,FUNCNAME)(PARAM1)
#define CPP2_UFCS_TEMPLATE(FUNCNAME,TEMPARGS,PARAM1,...) CPP2_UFCS_(&,template,FUNCNAME CPP2_UFCS_REMPARENS TEMPARGS)(PARAM1,__VA_ARGS__)
#define CPP2_UFCS_TEMPLATE_0(FUNCNAME,TEMPARGS,PARAM1) CPP2_UFCS_(&,template,FUNCNAME CPP2_UFCS_REMPARENS TEMPARGS)(PARAM1)
#define CPP2_UFCS_NONLOCAL(FUNCNAME,PARAM1,...) CPP2_UFCS_(,,FUNCNAME)(PARAM1,__VA_ARGS__)
#define CPP2_UFCS_0_NONLOCAL(FUNCNAME,PARAM1) CPP2_UFCS_(,,FUNCNAME)(PARAM1)
#define CPP2_UFCS_TEMPLATE_NONLOCAL(FUNCNAME,TEMPARGS,PARAM1,...) CPP2_UFCS_(,template,FUNCNAME CPP2_UFCS_REMPARENS TEMPARGS)(PARAM1,__VA_ARGS__)
#define CPP2_UFCS_TEMPLATE_0_NONLOCAL(FUNCNAME,TEMPARGS,PARAM1) CPP2_UFCS_(,template,FUNCNAME CPP2_UFCS_REMPARENS TEMPARGS)(PARAM1)
#endif


//-----------------------------------------------------------------------
Expand Down

0 comments on commit 36cccf5

Please sign in to comment.