[PATCH v2 02/14] selftests/nolibc: add macros to enhance maintainability