mirror of
https://github.com/gcc-mirror/gcc.git
synced 2024-11-21 13:40:47 +00:00
gccrs: proc_macro: Add is_available function
Add is_available function to the C++ library. libgrust/ChangeLog: * libproc_macro/proc_macro.cc (bridge_is_available): Add bridge function. * libproc_macro/proc_macro.h (bridge_is_available): Likewise. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
This commit is contained in:
parent
c0763eac05
commit
ce09474789
@ -49,6 +49,12 @@ Procmacro::make_bang (const char *name, BangMacro macro)
|
||||
return {BANG, payload};
|
||||
}
|
||||
|
||||
extern "C" bool
|
||||
bridge_is_available ()
|
||||
{
|
||||
return __gccrs_proc_macro_is_available_fn ();
|
||||
}
|
||||
|
||||
bool
|
||||
not_available ()
|
||||
{
|
||||
|
@ -102,6 +102,9 @@ struct ProcmacroArray
|
||||
bool
|
||||
not_available ();
|
||||
|
||||
extern "C" bool
|
||||
bridge_is_available ();
|
||||
|
||||
} // namespace ProcMacro
|
||||
|
||||
#endif /* ! PROC_MACRO_H */
|
||||
|
Loading…
Reference in New Issue
Block a user