Exemplo n.º 1
0
 /// <summary>
 /// Initialize try-panic environment
 /// </summary>
 /// <param name="args">Label name of relative OnPanic statement</param>
 public static void TryLabel(object args)
 {
     if (BasePanic.TryScopeTarget != null)
     {
         BasePanic.Throw("Can not initialize try environment in the scope of another try environment", 7, "PreRuntime");
     }
     BasePanic.TryScopeTarget = CurrentFunctionPointer.FindLabel((string)args);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initialize try-panic environment
 /// </summary>
 /// <param name="args">Instruction index of relative OnPanic statement</param>
 public static void Try(object args)
 {
     if (BasePanic.TryScopeTarget != null)
     {
         BasePanic.Throw("Can not initialize try environment in the scope of another try environment", 14, "PreRuntime");
     }
     BasePanic.TryScopeTarget = (int)args;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Throws a new exception with a string parameter as message
 /// </summary>
 /// <param name="args"></param>
 public static void RvmThrow(object args)
 {
     BasePanic.Throw(Stack.Pop().Cast <CacheTable>());
 }