diff options
Diffstat (limited to 'spec/inputs')
| -rw-r--r-- | spec/inputs/macro.mp | 5 | ||||
| -rw-r--r-- | spec/inputs/macro_export.mp | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/spec/inputs/macro.mp b/spec/inputs/macro.mp index c7ec79c..103df95 100644 --- a/spec/inputs/macro.mp +++ b/spec/inputs/macro.mp | |||
| @@ -5,7 +5,10 @@ macro block init = -> | |||
| 5 | 5 | ||
| 6 | $init! | 6 | $init! |
| 7 | 7 | ||
| 8 | import "macro_export" as {$myconfig:$config, :$showMacro, :$asserts, :$assert} | 8 | import "macro_export" as { |
| 9 | $, -- import all macros | ||
| 10 | $config:$myconfig, -- rename macro $config to $myconfig | ||
| 11 | } | ||
| 9 | 12 | ||
| 10 | $asserts item == nil | 13 | $asserts item == nil |
| 11 | 14 | ||
diff --git a/spec/inputs/macro_export.mp b/spec/inputs/macro_export.mp index 759c6d1..7208b2a 100644 --- a/spec/inputs/macro_export.mp +++ b/spec/inputs/macro_export.mp | |||
| @@ -11,7 +11,7 @@ export macro expr showMacro = (name,res)-> | |||
| 11 | print txt | 11 | print txt |
| 12 | txt" | 12 | txt" |
| 13 | else | 13 | else |
| 14 | "#{res}" | 14 | res |
| 15 | 15 | ||
| 16 | export macro block asserts = (cond)-> | 16 | export macro block asserts = (cond)-> |
| 17 | if debugMode | 17 | if debugMode |
