diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-07-28 23:28:29 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-07-28 23:28:29 -0700 |
commit | e2f18e8866bd75669c04bff52c3f8e96d13eeb4e (patch) | |
tree | 129495b1009aa08f7715c5d58f6eba8fcad7e566 /shell/macroexpand.mu | |
parent | e2f6e9011eb64b9f2372dbed6ed3838ce8e26ec0 (diff) | |
download | mu-e2f18e8866bd75669c04bff52c3f8e96d13eeb4e.tar.gz |
shell: literal images
Diffstat (limited to 'shell/macroexpand.mu')
-rw-r--r-- | shell/macroexpand.mu | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/shell/macroexpand.mu b/shell/macroexpand.mu index f65ead85..6cfae474 100644 --- a/shell/macroexpand.mu +++ b/shell/macroexpand.mu @@ -103,6 +103,15 @@ fn macroexpand-iter _expr-ah: (addr handle cell), globals: (addr global-table), trace-higher trace return 0/false } + { + var litimg?/eax: boolean <- litimg? first + compare litimg?, 0/false + break-if-= + # litimg is a literal + trace-text trace, "mac", "literal image" + trace-higher trace + return 0/false + } var result/edi: boolean <- copy 0/false # for each builtin, expand only what will later be evaluated $macroexpand-iter:anonymous-function: { |