mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Add $member.get(value) to replace value.$eval($member.nameof)
This commit is contained in:
@@ -74,7 +74,7 @@ fn void! TextTemplate.init(&self, String template, String tag_start = "{{", Stri
|
||||
.data = (String*)(data + $m.offsetof),
|
||||
};
|
||||
$default:
|
||||
$if $defined(self.data.$eval($m.nameof).as_stream):
|
||||
$if $defined($m.get(self.data).as_stream):
|
||||
return TextTag{
|
||||
.kind = TEMPLATE,
|
||||
.template = self.data.$eval($m.nameof).as_stream(),
|
||||
|
||||
Reference in New Issue
Block a user