Exemplo n.º 1
0
        public static int Main(string [] args)
        {
            if (false)
            {
                NativeLibraryHandler nh = new NativeLibraryHandler();
                nh.Libraries.Add("c");
                nh.LibrariesSearchPaths.Add("/lib");
                nh.Initialize();
                Console.WriteLine("Library for printf is {0}", nh.GetSymbolLibrary("printf"));
                Console.WriteLine("Library for xxxprintf is {0}", nh.GetSymbolLibrary("xxxprintf"));
                return(0);
            }


            if (args.Length == 0)
            {
                Usage();
            }

            try {
                Run(new Queue(args));
            } catch (Exception e) {
                Console.WriteLine("Fatal error in {0}", merge_name);
                Console.WriteLine(e);
            }

            return(0);
        }
Exemplo n.º 2
0
		public static int Main (string [] args)
		{
			if (false) {
				NativeLibraryHandler nh = new NativeLibraryHandler ();
				nh.Libraries.Add ("c");
				nh.LibrariesSearchPaths.Add ("/lib");
				nh.Initialize ();
				Console.WriteLine ("Library for printf is {0}", nh.GetSymbolLibrary ("printf"));
				Console.WriteLine ("Library for xxxprintf is {0}", nh.GetSymbolLibrary ("xxxprintf"));
				return 0;
			}


			if (args.Length == 0)
				Usage ();

			try {
				Run (new Queue (args));
			} catch (Exception e) {
				Console.WriteLine ("Fatal error in {0}", merge_name);
				Console.WriteLine (e);
			}

			return 0;
		}