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>
This commit is contained in:
Pierre-Emmanuel Patry 2023-05-15 15:13:38 +02:00 committed by Arthur Cohen
parent 432120dc19
commit 4ca2f20300

View File

@ -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 */