SetupProlog() public static method

public static SetupProlog ( ) : void
return void
示例#1
0
 static public int install()
 {
     try
     {
         PrologCLR.IsPLWin         = Type.GetType("Mono.Runtime") == null;
         PrologCLR.RedirectStreams = false;
         PrologCLR.SetupProlog();
         PrologCLR.ConsoleWriteLine(typeof(Embedded).FullName + ".install suceeded");
         PrologCLR.ClientReady = true;
         return(libpl.PL_succeed);
     }
     catch (Exception e)
     {
         PrologCLR.WriteException(e);
         PrologCLR.ConsoleWriteLine(typeof(Embedded).FullName + ".install failed");
         return(libpl.PL_fail);
     }
 }