core: adjust System.Runtime.Platform interop
Part of #1055. Added `Platform` method to compiler.
This commit is contained in:
parent
88e003d219
commit
76acef18ad
2 changed files with 7 additions and 0 deletions
|
@ -68,6 +68,7 @@ var syscalls = map[string]map[string]Syscall{
|
||||||
"CheckWitness": {"System.Runtime.CheckWitness", false},
|
"CheckWitness": {"System.Runtime.CheckWitness", false},
|
||||||
"Log": {"System.Runtime.Log", false},
|
"Log": {"System.Runtime.Log", false},
|
||||||
"Notify": {"System.Runtime.Notify", false},
|
"Notify": {"System.Runtime.Notify", false},
|
||||||
|
"Platform": {"System.Runtime.Platform", false},
|
||||||
},
|
},
|
||||||
"storage": {
|
"storage": {
|
||||||
"ConvertContextToReadOnly": {"System.Storage.AsReadOnly", false},
|
"ConvertContextToReadOnly": {"System.Storage.AsReadOnly", false},
|
||||||
|
|
|
@ -80,3 +80,9 @@ func GetNotifications(h []byte) [][]interface{} {
|
||||||
func GetInvocationCounter() int {
|
func GetInvocationCounter() int {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Platform returns the platform name, which is set to be `NEO`. This function uses
|
||||||
|
// `System.Runtime.Platform` syscall.
|
||||||
|
func Platform() []byte {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue