Skip to content
Snippets Groups Projects
Commit 4ca2f203 authored by Pierre-Emmanuel Patry's avatar Pierre-Emmanuel Patry Committed by Arthur Cohen
Browse files

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: default avatarPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
parent 432120dc
No related branches found
No related tags found
No related merge requests found
...@@ -89,6 +89,12 @@ public: ...@@ -89,6 +89,12 @@ public:
Procmacro make_bang (const char *name, BangMacro macro); Procmacro make_bang (const char *name, BangMacro macro);
}; };
struct ProcmacroArray
{
std::uint64_t length;
Procmacro *macros;
};
} // namespace ProcMacro } // namespace ProcMacro
#endif /* ! PROC_MACRO_H */ #endif /* ! PROC_MACRO_H */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment