C macros can do anything - create types, procs, conditionally enable parts of the code or define simple constants. All of this has to be somehow converted to nim macros if possible. Boost wave should be pretty useful for solving this problem.
Many macro definitions are relatively simple, which means there are multiple steps of different complexity:
C macros can do anything - create types, procs, conditionally enable parts of the code or define simple constants. All of this has to be somehow converted to nim macros if possible. Boost wave should be pretty useful for solving this problem.
Many macro definitions are relatively simple, which means there are multiple steps of different complexity:
#define GIT_CLONE_OPTIONS_VERSION 1enum- Automatically generate boilerplate code that makes wrappers easier to use #10#define get_field(arg) (arg)->namemacro- need to find concrete examples of where this is done and how to meaningfully port this to nim.#define MAKE_STRUCT(name) struct name {};. Maybe Qt macros from Qt support #25 would be a good starting point?