core: replace interop names with named constants

This commit is contained in:
Evgenii Stratonikov 2020-08-14 13:50:52 +03:00
parent f3650e20b0
commit 7854dcfd8f
24 changed files with 255 additions and 177 deletions

View file

@ -56,7 +56,7 @@ func getPanicSource(need bool, message string) string {
}
func getLogHandler(logs *[]string) vm.SyscallHandler {
logID := interopnames.ToID([]byte("System.Runtime.Log"))
logID := interopnames.ToID([]byte(interopnames.SystemRuntimeLog))
return func(v *vm.VM, id uint32) error {
if id != logID {
return errors.New("syscall not found")