Login
7 branches 0 tags
Ben (Win10) Fixed exception handling closures not being poped from the stack 8b1fa21 3 years ago 631 Commits
nujel / tests / asm-test.nuj
#!/usr/bin/env nujel

[let* [defn min [a b]
        [if [< a b] a b]]

  [def bc [assemble [$push/int 42] [$push/int 23] [$apply 2 min] [$ret]]]
  [println [bytecode-eval bc #nil root-closure #t]]

]