aboutsummaryrefslogtreecommitdiffstats
path: root/src/linked.rs
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2021-02-20 21:42:25 +0100
committerGustav Sörnäs <gustav@sornas.net>2021-02-20 21:42:25 +0100
commitef38892cb0c8245d65a07518e080849795016755 (patch)
treeb6df2df8fee78972f9a1fd3578a4f8a643bc614e /src/linked.rs
parent6e97e9667967f90c66ff71f2c5468d5700887f24 (diff)
downloadsylt-automatic-link.tar.gz
cool linky macroautomatic-link
Diffstat (limited to 'src/linked.rs')
-rw-r--r--src/linked.rs18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/linked.rs b/src/linked.rs
deleted file mode 100644
index 6d6621c..0000000
--- a/src/linked.rs
+++ /dev/null
@@ -1,18 +0,0 @@
-#[sylt_macro::extern_link]
-pub fn f(x: sylt::Value, _typecheck: bool) -> Result<sylt::Value, sylt::error::ErrorKind> {
- Ok(x)
-}
-
-#[sylt_macro::extern_link(g)]
-pub fn f2(x: sylt::Value, _typecheck: bool) -> Result<sylt::Value, sylt::error::ErrorKind> {
- Ok(x)
-}
-
-mod m1 {
- mod m2 {
- #[sylt_macro::extern_link(h)]
- pub fn f2(x: sylt::Value, _typecheck: bool) -> Result<sylt::Value, sylt::error::ErrorKind> {
- Ok(x)
- }
- }
-}