diff options
| author | 2011-01-20 12:35:44 -0800 | |
|---|---|---|
| committer | 2011-01-20 12:35:44 -0800 | |
| commit | 040d7d8ce765b1ee69cf6531181b2a33e9e83537 (patch) | |
| tree | f414f407515e500be93e221769de72f7d3324ed4 /libs/rs/rsScriptC.cpp | |
| parent | 90fcb2ad9378ee89f6795942c2b065a32bc83895 (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.cpp | 5 |
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, |