mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
$elif deprecated.
This commit is contained in:
@@ -302,13 +302,14 @@ macro void DString.append(DString* str, value)
|
||||
$case Char32:
|
||||
str.append_char32(value);
|
||||
$default:
|
||||
$if (@convertible(value, Char32))
|
||||
str.append_char32(value);
|
||||
$elif (@convertible(value, String))
|
||||
str.append_chars(value);
|
||||
$else
|
||||
$assert(false, "Unsupported type for append – use printf instead.");
|
||||
$endif
|
||||
$switch
|
||||
$case @convertible(value, Char32):
|
||||
str.append_char32(value);
|
||||
$case @convertible(value, String):
|
||||
str.append_chars(value);
|
||||
$default:
|
||||
$assert(false, "Unsupported type for append – use printf instead.");
|
||||
$endswitch
|
||||
$endswitch
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user