Mercurial
annotate third_party/libuv/m4/as_case.m4 @ 278:8d560f50ed4c
Improve infinite canvas interactions and browser chrome
Render Lucide icons directly with Raylib, add searchable icon browsing, robust text editing, entity lifecycle animations, z-order-safe input, semantic themes, and animated editable browser controls. Document rendering, pinning, context, and component extension for future agents.
Co-authored-by: Copilot <[email protected]>
Copilot-Session: f68442b1-fa8f-46a0-9689-81710613bbd4
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Mon, 17 Aug 2026 22:16:14 -0700 |
| parents | 948de3f54cea |
| children |
| rev | line source |
|---|---|
| 160 | 1 # AS_CASE(WORD, [PATTERN1], [IF-MATCHED1]...[DEFAULT]) |
| 2 # ---------------------------------------------------- | |
| 3 # Expand into | |
| 4 # | case WORD in | |
| 5 # | PATTERN1) IF-MATCHED1 ;; | |
| 6 # | ... | |
| 7 # | *) DEFAULT ;; | |
| 8 # | esac | |
| 9 m4_define([_AS_CASE], | |
| 10 [m4_if([$#], 0, [m4_fatal([$0: too few arguments: $#])], | |
| 11 [$#], 1, [ *) $1 ;;], | |
| 12 [$#], 2, [ $1) m4_default([$2], [:]) ;;], | |
| 13 [ $1) m4_default([$2], [:]) ;; | |
| 14 $0(m4_shiftn(2, $@))])dnl | |
| 15 ]) | |
| 16 m4_defun([AS_CASE], | |
| 17 [m4_ifval([$2$3], | |
| 18 [case $1 in | |
| 19 _AS_CASE(m4_shift($@)) | |
| 20 esac])]) | |
| 21 |