diff options
author | Robert Griesemer <gri@golang.org> | 2008-08-11 21:20:42 -0700 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2008-08-11 21:20:42 -0700 |
commit | 1b6f7d174c26892b590db2ee2221495175325cad (patch) | |
tree | 5e47a183de56ea2d7b92355d8c9cfbaca903edfe /src/pkg/integer.go | |
parent | 465517d85854bab3daa630b6d1863cf4aef170d3 (diff) | |
download | golang-1b6f7d174c26892b590db2ee2221495175325cad.tar.gz |
- changed go-in-go parser to require ()'s for panic and print
- adjusted much of the existing go code
- missing: tests
R=r
DELTA=229 (1 added, 17 deleted, 211 changed)
OCL=14103
CL=14103
Diffstat (limited to 'src/pkg/integer.go')
-rwxr-xr-x | src/pkg/integer.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pkg/integer.go b/src/pkg/integer.go index b9c3fc714..b10c73577 100755 --- a/src/pkg/integer.go +++ b/src/pkg/integer.go @@ -24,20 +24,20 @@ const M = 1 << L - 1; // TODO What are we going to about asserts? func ASSERT(p bool) { if !p { - panic "ASSERT failed"; + panic("ASSERT failed"); } } func CHECK(p bool) { if !p { - panic "CHECK failed"; + panic("CHECK failed"); } } func UNIMPLEMENTED(s string) { - panic "UNIMPLEMENTED: ", s; + panic("UNIMPLEMENTED: ", s); } @@ -631,5 +631,5 @@ func (x Integer) ToInt() int { } return i; } - panic "integer too large"; + panic("integer too large"); } |