2020-02-08 00:49:38 -07:00
|
|
|
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
|
2020-01-31 12:36:55 -07:00
|
|
|
|