Skip to content

Commit

Permalink
Load 'Debug.carp' by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
eriksvedang committed Mar 13, 2018
1 parent 832212d commit a9fd73a
Show file tree
Hide file tree
Showing 14 changed files with 5 additions and 14 deletions.
1 change: 0 additions & 1 deletion bench/array_resizing.carp
@@ -1,6 +1,5 @@
(load "Bench.carp")
(use Bench)
(load "Debug.carp")
(Debug.sanitize-addresses)

(def n 10000)
Expand Down
1 change: 0 additions & 1 deletion bench/array_subarray.carp
@@ -1,6 +1,5 @@
(load "Bench.carp")
(use Bench)
(load "Debug.carp")
(Debug.sanitize-addresses)
(use Array)

Expand Down
1 change: 0 additions & 1 deletion bench/array_swap.carp
@@ -1,6 +1,5 @@
(load "Bench.carp")
(use Bench)
(load "Debug.carp")
(Debug.sanitize-addresses)

(def a [0])
Expand Down
1 change: 0 additions & 1 deletion bench/array_update.carp
@@ -1,6 +1,5 @@
(load "Bench.carp")
(use Bench)
(load "Debug.carp")
(Debug.sanitize-addresses)
(use Array)

Expand Down
2 changes: 1 addition & 1 deletion core/Debug.carp
Expand Up @@ -40,6 +40,6 @@
()
(list 'do
(list 'IO.println (list 'ref
(list 'String.append (list 'String.copy "Assertion failed ")
(list 'String.append (list 'String.copy "Assertion failed at ")
(list 'String.copy (source-location)))))
'(System.exit 1))))
1 change: 0 additions & 1 deletion examples/ant.carp
Expand Up @@ -4,7 +4,6 @@

(load "sdl.carp")
(load "sdl_image.carp")
(load "Debug.carp")

(Debug.sanitize-addresses)

Expand Down
1 change: 0 additions & 1 deletion examples/bugs.carp
@@ -1,6 +1,5 @@
;; This file contains examples of unsolved bugs

(load "Debug.carp")
(Debug.sanitize-addresses)
(Project.config "print-ast" true)

Expand Down
1 change: 0 additions & 1 deletion examples/generic_structs.carp
@@ -1,4 +1,3 @@
(load "Debug.carp")
(Debug.sanitize-addresses)
(use Array)

Expand Down
1 change: 0 additions & 1 deletion examples/globals.carp
@@ -1,4 +1,3 @@
(load "Debug.carp")
(Project.config "print-ast" true)
(Debug.sanitize-addresses)

Expand Down
4 changes: 3 additions & 1 deletion examples/temp.carp
@@ -1,4 +1,6 @@
;;(Project.config "echo-compiler-cmd" true)
;; (load "Debug.carp")
;; (Debug.sanitize-addresses)
;; (Project.config "print-ast" true)

(defn main []
(assert false))
1 change: 1 addition & 0 deletions src/StartingEnv.hs
Expand Up @@ -29,6 +29,7 @@ coreModules carpDir = map (\s -> carpDir ++ "/core/" ++ s ++ ".carp") [ "Interfa
, "IO"
, "System"
, "Pattern"
, "Debug"
]

-- | The array module contains functions for working with the Array type.
Expand Down
2 changes: 0 additions & 2 deletions test/init_global.carp
Expand Up @@ -2,8 +2,6 @@
;; It initializes a global with a something that needs to allocate memory and call functions,
;; then checks that the memory balance is correct after the init step.

(load "Debug.carp")

(def g (copy (Array.nth &[@"A" @"B" @"C"] 1)))

;; The one allocation left after 'carp_init_globals' should be 'g' itself:
Expand Down
1 change: 0 additions & 1 deletion test/memory.carp
@@ -1,4 +1,3 @@
(load "Debug.carp")
(load "Test.carp")

(use IO)
Expand Down
1 change: 0 additions & 1 deletion test/vectorn.carp
@@ -1,4 +1,3 @@
(load "Debug.carp")
(Debug.sanitize-addresses)

(load "Test.carp")
Expand Down

0 comments on commit a9fd73a

Please sign in to comment.