[Option("[Mono] Allows unsafe code", "unsafe")]
public bool AllowUnsafeCode { set { RootContext.Unsafe = value; } }
- [Option("[Mono] Set default context to checked", "checked")]
- public bool Checked { set { RootContext.Checked = value; } }
-
[Option("[Mono] Debugger {arguments}", "debug-args")]
public WhatToDoNext SetDebugArgs(string args)
{
// [Option("[NOT IMPLEMENTED YET]Enable optimizations", "optimize")]
public bool optimize = false;
-// [Option("[NOT IMPLEMENTED YET]Remove integer checks. Default off.")]
- public bool removeintchecks = false;
+ // TODO: handle VB.NET [+|-] boolean syntax
+ [Option("Remove integer checks. Default off.")]
+ public bool removeintchecks { set { RootContext.Checked = !value; } }
// TODO: handle VB.NET [+|-] boolean syntax
[Option("Emit debugging information", 'g', "debug")]
[Option("[IGNORED]Emit compiler output in UTF8 character encoding")]
public bool utf8output;
- // TODO : response file support
-
ArrayList defines = new ArrayList();
ArrayList references = new ArrayList();
ArrayList soft_references = new ArrayList();
Mono.MonoBASIC.Parser.ImportsList.Add("Microsoft.VisualBasic");
}
-
- //
- // Returns the directory where the system assemblies are installed
- //
- string GetSystemDir ()
- {
- Assembly [] assemblies = AppDomain.CurrentDomain.GetAssemblies ();
-
- foreach (Assembly a in assemblies){
- string codebase = a.CodeBase;
- if (codebase.EndsWith ("corlib.dll")){
- return codebase.Substring (0, codebase.LastIndexOf ("/"));
- }
- }
-
- Report.Error (-15, "Can not compute my system path");
- return "";
- }
-
//
// Given a path specification, splits the path from the file/pattern
//
SetupDefaultImports();
+ // Some defaults
+ RootContext.Checked = true;
+
ProcessArgs(args);
if (first_source == null)