diff options
author | Jason Sams <rjsams@android.com> | 2009-10-07 18:14:01 -0700 |
---|---|---|
committer | Jason Sams <rjsams@android.com> | 2009-10-07 18:14:01 -0700 |
commit | bd2197fb0038acd2dc4b17ad3ed3c69cc29dcce2 (patch) | |
tree | af713f6ca8ae06bf5724932461ce98b0721c35af /libs/rs/rsScriptC_Lib.cpp | |
parent | dc2ccb82f96b6a7be7a7b262b81d3aa1422f46fa (diff) |
Add script to script call support. Add exception to catch out of bound index data when added to TriangleMeshBuilder.
Diffstat (limited to 'libs/rs/rsScriptC_Lib.cpp')
-rw-r--r-- | libs/rs/rsScriptC_Lib.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libs/rs/rsScriptC_Lib.cpp b/libs/rs/rsScriptC_Lib.cpp index 9a962907a100..436f48b319ef 100644 --- a/libs/rs/rsScriptC_Lib.cpp +++ b/libs/rs/rsScriptC_Lib.cpp @@ -1008,6 +1008,13 @@ static uint32_t SC_toClient(void *data, int cmdID, int len, int waitForSpace) return rsc->sendMessageToClient(data, cmdID, len, waitForSpace != 0); } +static void SC_scriptCall(int scriptID) +{ + GET_TLS(); + rsc->runScript((Script *)scriptID, 0); +} + + ////////////////////////////////////////////////////////////////////////////// // Class implementation ////////////////////////////////////////////////////////////////////////////// @@ -1289,6 +1296,9 @@ ScriptCState::SymbolTable_t ScriptCState::gSyms[] = { { "debugHexI32", (void *)&SC_debugHexI32, "void", "(void *, int)" }, + { "scriptCall", (void *)&SC_scriptCall, + "void", "(int)" }, + { NULL, NULL, NULL, NULL } }; |