aboutsummaryrefslogtreecommitdiff
path: root/libgrust/libproc_macro
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-05-15 15:13:38 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 18:46:25 +0100
commit4ca2f2030048e0a0121a32ad218c0e3f7a327191 (patch)
tree38a34affddfd6bfcfd7daf1ebe19abdb5cf25fe9 /libgrust/libproc_macro
parent432120dc19ac0fe7323bdd4678ae26b45e34844e (diff)
downloadgcc-4ca2f2030048e0a0121a32ad218c0e3f7a327191.zip
gcc-4ca2f2030048e0a0121a32ad218c0e3f7a327191.tar.gz
gcc-4ca2f2030048e0a0121a32ad218c0e3f7a327191.tar.bz2
gccrs: libproc_macro: Add procmacro array definition
Standard types do not guarantee anything about their ABI and are therefore unconvenient to use as a primarily exposed container. With such asumption this commit introduces a container. libgrust/ChangeLog: * libproc_macro/proc_macro.h (struct ProcmacroArray): Add ProcmacroArray definition. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'libgrust/libproc_macro')
-rw-r--r--libgrust/libproc_macro/proc_macro.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libgrust/libproc_macro/proc_macro.h b/libgrust/libproc_macro/proc_macro.h
index 3022203..dcd2e69 100644
--- a/libgrust/libproc_macro/proc_macro.h
+++ b/libgrust/libproc_macro/proc_macro.h
@@ -89,6 +89,12 @@ public:
Procmacro make_bang (const char *name, BangMacro macro);
};
+struct ProcmacroArray
+{
+ std::uint64_t length;
+ Procmacro *macros;
+};
+
} // namespace ProcMacro
#endif /* ! PROC_MACRO_H */