tprogmem.nim 266 B

123456789101112
  1. discard """
  2. output: "5"
  3. cmd: r"nim c --hints:on $options -d:release $file"
  4. ccodecheck: "'/*PROGMEM*/ myLetVariable = {'"
  5. target: "C"
  6. """
  7. var myLetVariable {.exportc, codegenDecl: "$# /*PROGMEM*/ $#".} = [1, 2, 3]
  8. myLetVariable[0] = 5
  9. echo myLetVariable[0]