[Piglit] [PATCH 1/8] util: Add a PIGLIT_STRINGIFY macro
Neil Roberts
nroberts at igalia.com
Wed Apr 4 22:56:48 UTC 2018
---
tests/util/piglit-util.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/util/piglit-util.h b/tests/util/piglit-util.h
index 0a5eab810..3dfb5d6c5 100644
--- a/tests/util/piglit-util.h
+++ b/tests/util/piglit-util.h
@@ -162,6 +162,8 @@ piglit_register_subtests(const char *names[]);
#define MIN3(a, b, c) MIN2(MIN2((a), (b)), (c))
#define MAX3(a, b, c) MAX2(MAX2((a), (b)), (c))
#define ALIGN(value, alignment) (((value) + alignment - 1) & ~(alignment - 1))
+#define PIGLIT_STRINGIFY(macro_or_string) PIGLIT_STRINGIFY_ARG (macro_or_string)
+#define PIGLIT_STRINGIFY_ARG(contents) #contents
/**
* Utility macro that checks for a given opengl error, and report a
--
2.14.3
More information about the Piglit
mailing list