Skip to content

Commit f3e243b

Browse files
committed
FEAT: allow block! as an argument for REGISTER-CODEC function
1 parent efd3c74 commit f3e243b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/mezz/sys-codec.r

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ REBOL [
1919

2020
register-codec: function [
2121
{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)"
22+
codec [block! object!] "Codec to register (should be based on system/standard/codec template)"
2323
/local name suffixes
2424
][
25+
if block? codec [codec: make object! codec]
2526
if not word? name: try [codec/name][
2627
cause-error 'Script 'wrong-type 'codec/name
2728
]

0 commit comments

Comments
 (0)