From 5238f95a778830471537330a78fd013ee2e3cff8 Mon Sep 17 00:00:00 2001 From: ericwa Date: Wed, 29 Sep 2010 02:06:33 +0000 Subject: [PATCH] libobjc2/Test: use # instead of __STRING in test macro --- Test/RuntimeTest.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Test/RuntimeTest.m b/Test/RuntimeTest.m index 0cc587a..66dcf21 100644 --- a/Test/RuntimeTest.m +++ b/Test/RuntimeTest.m @@ -11,7 +11,7 @@ static void _test(BOOL X, char *expr, int line) fprintf(stderr, "ERROR: Test failed: '%s' on %s:%d\n", expr, __FILE__, line); } } -#define test(X) _test(X, __STRING(X), __LINE__) +#define test(X) _test(X, #X, __LINE__) static int stringsEqual(const char *a, const char *b) {