summaryrefslogtreecommitdiff
path: root/libs/rs/rsScriptC.cpp
diff options
context:
space:
mode:
author Shih-wei Liao <sliao@google.com> 2011-01-20 12:35:44 -0800
committer Shih-wei Liao <sliao@google.com> 2011-01-20 12:35:44 -0800
commit040d7d8ce765b1ee69cf6531181b2a33e9e83537 (patch)
treef414f407515e500be93e221769de72f7d3324ed4 /libs/rs/rsScriptC.cpp
parent90fcb2ad9378ee89f6795942c2b065a32bc83895 (diff)
Handle fatal errors from calling bccRegisterSymbolCallback (if any).
Change-Id: I53f35b6efd26abc1e8559f6f1e37abb55a1df7db
Diffstat (limited to 'libs/rs/rsScriptC.cpp')
-rw-r--r--libs/rs/rsScriptC.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/rs/rsScriptC.cpp b/libs/rs/rsScriptC.cpp
index 1fceb663527f..eecfa16b43a4 100644
--- a/libs/rs/rsScriptC.cpp
+++ b/libs/rs/rsScriptC.cpp
@@ -475,7 +475,10 @@ bool ScriptCState::runCompiler(Context *rsc,
s->mEnviroment.mIsThreadable = true;
- bccRegisterSymbolCallback(s->mBccScript, symbolLookup, s);
+ if (bccRegisterSymbolCallback(s->mBccScript, symbolLookup, s) != 0) {
+ LOGE("bcc: FAILS to register symbol callback");
+ return false;
+ }
if (bccReadBC(s->mBccScript,
resName,