Switch to <* *> docs. Fix issue with dynamically loaded C3 libs with other C3 code.

This commit is contained in:
Christoffer Lerno
2024-10-12 17:55:05 +02:00
committed by Christoffer Lerno
parent 9f6a4eb300
commit 31cd839063
119 changed files with 3271 additions and 3277 deletions

View File

@@ -1,8 +1,6 @@
// #target: macos-x64
/**
* @require Type.kindof == STRUCT
**/
<* @require Type.kindof == STRUCT *>
module abc(<Type>);
import std::io;
import std::collections::list;
@@ -42,10 +40,10 @@ struct TextTag
}
}
/**
* @require self.tags.len == 0 "template already initialized"
* @require tag_start != tag_end
**/
<*
@require self.tags.len == 0 "template already initialized"
@require tag_start != tag_end
*>
fn void! TextTemplate.init(&self, String template, String tag_start = "{{", String tag_end = "}}", Allocator using = allocator::heap())
{