Skip to content

Shows how to count and operation on C preprocessor macros with zero to ten arguments

vomlehn/vararg-macros

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vararg-macros

C preprocess macros that allow processing of data with variable numbers of arguments. See include/vararg-macros.h for details, but a quick summary is:

Macro name Description
ARG_COUNT(arg1, arg2, ...) Counts the number of arguments
supplied
PROCESS_ARGS(macro, arg1, Invokes the user-defined macro
arg2, ...) for each argument, putting commas between
the results of each invocation.
PROCESS_SEP_ARGS(macro, Invokes the user-defined macro for
sep, arg1, arg2, ...) each argument, putting sep between the
results of each invocation.

About

Shows how to count and operation on C preprocessor macros with zero to ten arguments

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •