summaryrefslogtreecommitdiff
path: root/wasp/boards/simulator/micropython.py
blob: 578a12d2e1d2e41ce1cc8e388e0dcb2b1ab08a7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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