Esempio n. 1
0
 public static void ValidateRuntimeTokens(RuntimeIshtarModule module)
 {
     foreach (var @class in module.class_table.OfType <RuntimeIshtarClass>())
     {
         VM.Assert(@class.runtime_token != RuntimeToken.Default, WNE.TYPE_LOAD,
                   $"Detected non-inited runtime token. type: '{@class.FullName.NameWithNS}'");
     }
 }
Esempio n. 2
0
 public void validate(CallFrame frame, VeinTypeCode typeCode) =>
 VM.Assert(type == VeinTypeCode.TYPE_ARRAY, WNE.TYPE_MISMATCH,
           $"stack type mismatch, current: '{type}', expected: '{typeCode}'. opcode: '{frame.last_ip}'", frame);