diff options
Diffstat (limited to 'wasp/boards/simulator/micropython.py')
| -rw-r--r-- | wasp/boards/simulator/micropython.py | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/wasp/boards/simulator/micropython.py b/wasp/boards/simulator/micropython.py index a5740f1..578a12d 100644 --- a/wasp/boards/simulator/micropython.py +++ b/wasp/boards/simulator/micropython.py @@ -1,5 +1,16 @@ -def const(x): - return x +def const(fn): + return fn + +def native(fn): + return fn + +def viper(fn): + def ptr8(buf): + return buf + + # This is a bit of a hack since the scope for ptr8 won't be right + # but it does mean no changes to the client + fn.__globals__['ptr8'] = ptr8 + + return fn -def native(x): - return x |
