examples: amalgamate now works w/modular retro-unix.c + devices

FossilOrigin-Name: e81e18d7b2d6825f0b5570b9ba0193653d36a2b2c0310e23c4eada89efee421f
This commit is contained in:
crc 2020-10-22 19:11:24 +00:00
parent 87a5965718
commit db5b50759e

View file

@ -24,12 +24,12 @@ Then extract and generate the single file source.
~~~ ~~~
{{ {{
:image:inline :include-file
'vm/nga-c/retro-image.c [ s:put nl ] file:for-each-line ; #10 + s:chop 'vm/nga-c/ s:prepend here swap file:slurp here s:put ;
:source:line :source:line
dup '#include_"retro-image.c" s:eq? dup '#include_" s:begins-with?
[ drop image:inline ] [ s:put nl ] choose ; [ include-file ] [ s:put nl ] choose ;
---reveal--- ---reveal---