mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
Add @castable and @convertible builtin macros, removes the need $castable and $convertible
This commit is contained in:
@@ -267,9 +267,9 @@ macro void String.append(String* str, value)
|
||||
$case Char32:
|
||||
str.append_char32(value);
|
||||
$default:
|
||||
$if ($convertible($Type, Char32)):
|
||||
$if (@convertible($Type, Char32)):
|
||||
str.append_char32(value);
|
||||
$elif ($convertible($Type, char[])):
|
||||
$elif (@convertible($Type, char[])):
|
||||
str.append_chars(value);
|
||||
$else:
|
||||
$assert("Unsupported type for appending");
|
||||
|
||||
Reference in New Issue
Block a user