We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent efd3c74 commit f3e243bCopy full SHA for f3e243b
src/mezz/sys-codec.r
@@ -19,9 +19,10 @@ REBOL [
19
20
register-codec: function [
21
{Registers non-native codec to system/codecs and it's suffixes into system/options/file-types}
22
- codec [object!] "Codec to register (should be based on system/standard/codec template)"
+ codec [block! object!] "Codec to register (should be based on system/standard/codec template)"
23
/local name suffixes
24
][
25
+ if block? codec [codec: make object! codec]
26
if not word? name: try [codec/name][
27
cause-error 'Script 'wrong-type 'codec/name
28
]
0 commit comments