mirror of
https://github.com/carp-lang/Carp.git
synced 2024-10-26 05:45:37 +03:00
Load 'Debug.carp' by default.
This commit is contained in:
parent
832212d3fe
commit
a9fd73ab2a
@ -1,6 +1,5 @@
|
||||
(load "Bench.carp")
|
||||
(use Bench)
|
||||
(load "Debug.carp")
|
||||
(Debug.sanitize-addresses)
|
||||
|
||||
(def n 10000)
|
||||
|
@ -1,6 +1,5 @@
|
||||
(load "Bench.carp")
|
||||
(use Bench)
|
||||
(load "Debug.carp")
|
||||
(Debug.sanitize-addresses)
|
||||
(use Array)
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
(load "Bench.carp")
|
||||
(use Bench)
|
||||
(load "Debug.carp")
|
||||
(Debug.sanitize-addresses)
|
||||
|
||||
(def a [0])
|
||||
|
@ -1,6 +1,5 @@
|
||||
(load "Bench.carp")
|
||||
(use Bench)
|
||||
(load "Debug.carp")
|
||||
(Debug.sanitize-addresses)
|
||||
(use Array)
|
||||
|
||||
|
@ -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))))
|
||||
|
@ -4,7 +4,6 @@
|
||||
|
||||
(load "sdl.carp")
|
||||
(load "sdl_image.carp")
|
||||
(load "Debug.carp")
|
||||
|
||||
(Debug.sanitize-addresses)
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
;; This file contains examples of unsolved bugs
|
||||
|
||||
(load "Debug.carp")
|
||||
(Debug.sanitize-addresses)
|
||||
(Project.config "print-ast" true)
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
(load "Debug.carp")
|
||||
(Debug.sanitize-addresses)
|
||||
(use Array)
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
(load "Debug.carp")
|
||||
(Project.config "print-ast" true)
|
||||
(Debug.sanitize-addresses)
|
||||
|
||||
|
@ -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))
|
||||
|
@ -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.
|
||||
|
@ -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:
|
||||
|
@ -1,4 +1,3 @@
|
||||
(load "Debug.carp")
|
||||
(load "Test.carp")
|
||||
|
||||
(use IO)
|
||||
|
@ -1,4 +1,3 @@
|
||||
(load "Debug.carp")
|
||||
(Debug.sanitize-addresses)
|
||||
|
||||
(load "Test.carp")
|
||||
|
Loading…
Reference in New Issue
Block a user