summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Onorato <joeo@android.com>2009-08-28 09:26:31 -0700
committerJoe Onorato <joeo@android.com>2009-08-28 09:26:31 -0700
commitecfd8e73e4d0102ba01139f9b7ea1e97ce7b79d5 (patch)
tree2f9f449bc87ddbb832fe8bebe555947eff83a383
parentbd3f7dedeb0f15bcf5e5b527732b54e45647e78b (diff)
downloadsystem_core-ecfd8e73e4d0102ba01139f9b7ea1e97ce7b79d5.zip
system_core-ecfd8e73e4d0102ba01139f9b7ea1e97ce7b79d5.tar.gz
system_core-ecfd8e73e4d0102ba01139f9b7ea1e97ce7b79d5.tar.bz2
acc error tweaks
-rw-r--r--libacc/acc.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/libacc/acc.cpp b/libacc/acc.cpp
index 0409c10..535361c 100644
--- a/libacc/acc.cpp
+++ b/libacc/acc.cpp
@@ -3837,7 +3837,7 @@ class Compiler : public ErrorSink {
void assertImpl(bool isTrue, int line) {
if (!isTrue) {
- LOGD("assertion failed at line %s:%d.", __FILE__, line);
+ LOGD("%d: assertion failed at line %s:%d.", mLineNumber, __FILE__, line);
internalError();
}
}
@@ -5220,7 +5220,6 @@ class Compiler : public ErrorSink {
String temp;
decodeToken(temp, tok, true);
error("Expected name. Got %s", temp.getUnwrapped());
- assert(false);
reportFailure = true;
}
for(;;) {