summaryrefslogtreecommitdiff
path: root/src/macro_processor/macro_processor.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/macro_processor/macro_processor.rs')
-rw-r--r--src/macro_processor/macro_processor.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/macro_processor/macro_processor.rs b/src/macro_processor/macro_processor.rs
index 612d2c5..a9585bb 100644
--- a/src/macro_processor/macro_processor.rs
+++ b/src/macro_processor/macro_processor.rs
@@ -3,6 +3,8 @@ use std::collections::HashMap;
use std::fs;
use std::process::Command;
+#[cfg(feature = "deadlinks")]
+use crate::macro_processor::deadlinks::smp_builtin_wodl;
// print only with debug_assertions
macro_rules! dprint {
($($x:tt)*) => {
@@ -672,6 +674,8 @@ impl MacroProcessor {
String::from("html_from_markdown"),
MacroType::Function(smp_builtin_html_from_markdown),
);
+ #[cfg(feature = "deadlinks")]
+ self.define_macro(String::from("wodl"), MacroType::Function(smp_builtin_wodl));
#[cfg(feature = "webring")]
self.define_macro(
String::from("webring_rss"),