Define _GET_MACRO

Define Documentation

_GET_MACRO(_1, _2, _3, _4, _5, _6, _7, _8, _9, _10, NAME, ...)

This allows us to select between two versions of each macro to avoid the ‘gnu-zero-variadic-macro-arguments’ warning:

  1. Only one macro argument for tracepoints without any arguments.

  2. Up to 10 macro arguments for tracepoints with up to 9 arguments. We can easily support more than 10 macro arguments if needed.