Export define macros
This commit is contained in:
parent
058e4284f6
commit
424ebbad20
1 changed files with 4 additions and 1 deletions
|
@ -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) => {
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue