예제 #1
0
 public static ZilObject BACK(Context ctx, [NotNull] IStructure st, int skip = 1)
 {
     try
     {
         var result = (ZilObject)st.GetBack(skip);
         if (result == null)
         {
             throw new InterpreterError(InterpreterMessages._0_Not_Enough_Elements);
         }
         return(result);
     }
     catch (NotSupportedException)
     {
         throw new InterpreterError(InterpreterMessages._0_Not_Supported_By_Type, "BACK");
     }
 }