Пример #1
0
        public static void Main(string[] args)
        {
            context = IodineContext.Create();

            AppDomain.CurrentDomain.UnhandledException += (object sender, UnhandledExceptionEventArgs e) => {
                if (e.ExceptionObject is UnhandledIodineExceptionException)
                {
                    HandleIodineException(e.ExceptionObject as UnhandledIodineExceptionException);
                }
            };

            IodineOptions options = IodineOptions.Parse(args);

            context.ShouldCache    = !options.SupressAutoCache;
            context.ShouldOptimize = !options.SupressOptimizer;

            ExecuteOptions(options);
        }