X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvppinfra%2Fclib.h;h=746cb511bbe79ff932c9cab443721ea484680671;hb=813c1bd257ddcc573422083bd66cc8b8ed79d5b2;hp=2db611d969b312fe558dbee41d5c86237069fc56;hpb=79934e855fc58aefde498cd0564796cdd6ccbc59;p=vpp.git diff --git a/src/vppinfra/clib.h b/src/vppinfra/clib.h index 2db611d969b..746cb511bbe 100644 --- a/src/vppinfra/clib.h +++ b/src/vppinfra/clib.h @@ -95,6 +95,9 @@ /* Make a string from the macro's argument */ #define CLIB_STRING_MACRO(x) #x +#define CLIB_STRING_ARRAY(...) \ + (char *[]) { __VA_ARGS__, 0 } + /* sanitizers */ #ifdef __has_feature #if __has_feature(address_sanitizer)