aboutsummaryrefslogtreecommitdiff
path: root/mingling_macros/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'mingling_macros/src/lib.rs')
-rw-r--r--mingling_macros/src/lib.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/mingling_macros/src/lib.rs b/mingling_macros/src/lib.rs
index 7dd2fe2..d5bdf35 100644
--- a/mingling_macros/src/lib.rs
+++ b/mingling_macros/src/lib.rs
@@ -46,10 +46,15 @@ mod suggest;
pub(crate) const DEFAULT_PROGRAM_NAME: &str = "ThisProgram";
+#[allow(dead_code)]
pub(crate) fn default_program_ident() -> Ident {
Ident::new(DEFAULT_PROGRAM_NAME, proc_macro2::Span::call_site())
}
+pub(crate) fn default_program_path() -> proc_macro2::TokenStream {
+ quote::quote! { crate::ThisProgram }
+}
+
// Global variables
#[cfg(feature = "general_renderer")]
pub(crate) static GENERAL_RENDERERS: Lazy<Mutex<BTreeSet<String>>> =