Export define macros

This commit is contained in:
msiglreith 2018-11-16 17:25:20 +01:00 committed by Maik Klein
parent 058e4284f6
commit 424ebbad20

View file

@ -87,6 +87,7 @@ named!(cfloat<&str, f32>,
pub fn define_handle_macro() -> Tokens {
quote! {
#[macro_export]
macro_rules! define_handle{
($name: ident, $ty: ident) => {
#[repr(transparent)]
@ -131,6 +132,7 @@ pub fn define_handle_macro() -> Tokens {
pub fn handle_nondispatchable_macro() -> Tokens {
quote!{
#[macro_export]
macro_rules! handle_nondispatchable {
($name: ident, $ty: ident) => {
#[repr(transparent)]
@ -197,6 +199,7 @@ pub fn vk_version_macros() -> Tokens {
}
pub fn vk_bitflags_wrapped_macro() -> Tokens {
quote!{
#[macro_export]
macro_rules! vk_bitflags_wrapped {
($name: ident, $all: expr, $flag_type: ty) => {