Skip to content

Commit

Permalink
Fix version on add-ns-load-mapping and add comment to RT.DisableFileLoad
Browse files Browse the repository at this point in the history
  • Loading branch information
dmiller committed Mar 6, 2013
1 parent 4aa53b7 commit 46e8f4b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions Clojure/Clojure.Source/clojure/core_clr.clj
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@
to allow them to be loaded from a different directory other than their root namespace
(i.e. the common case where the project directory is different from its default
namespace)."
{:added "1.5"}
[^String ns-root ^String fs-root]
(swap! *ns-load-mappings* conj
[(.Replace ns-root "." "/") fs-root]))
4 changes: 4 additions & 0 deletions Clojure/Clojure/Lib/RT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3458,6 +3458,10 @@ public static class RuntimeBootstrapFlag
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2211:NonConstantFieldsShouldNotBeVisible")]
public static bool _doRTBootstrap = true;

/// <summary>
/// Disable file loading
/// </summary>
/// <remarks>Prevent the load method from searching the file system for .clj and .clj.dll files. Used in production systems when all namespaces are to found in loaded assemblies.</remarks>
public static bool DisableFileLoad = false;
}

Expand Down

0 comments on commit 46e8f4b

Please sign in to comment.