summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2018-02-13 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2018-02-13 14:11:27 +0100
commit75fed99356bbfef17847bc765e916c2d629af956 (patch)
treef4d1c2e1a61b27e3b9f4867a99608049ca65e9b2 /tests
parente8e567546282d714729df55d10ca26ec35c71416 (diff)
downloadgobject-introspection-75fed99356bbfef17847bc765e916c2d629af956.tar.gz
Create a new symbol instead of changing its identifier in place.
Also free memory associated with macro name when it is unused.
Diffstat (limited to 'tests')
-rw-r--r--tests/scanner/regress.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/scanner/regress.h b/tests/scanner/regress.h
index cf0059e4..e1c995a6 100644
--- a/tests/scanner/regress.h
+++ b/tests/scanner/regress.h
@@ -423,6 +423,13 @@ typedef enum
REGRESS_TEST_EVALUE3 = '0'
} RegressTestEnumNoGEnum;
+/**
+ * REGRESS_TEST_EVALUE_DEPRECATED:
+ *
+ * Scanner used to replace %REGRESS_TEST_EVALUE1 with %REGRESS_TEST_EVALUE_DEPRECATED.
+ */
+#define REGRESS_TEST_EVALUE_DEPRECATED REGRESS_TEST_EVALUE1
+
_GI_TEST_EXTERN
const gchar * regress_test_enum_param(RegressTestEnum e);