summaryrefslogtreecommitdiff
path: root/rsScriptC_Lib.cpp
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2010-11-08 17:06:46 -0800
committerJason Sams <rjsams@android.com>2010-11-08 17:19:31 -0800
commitaad4bc5231dd7059fc5148b34a951117d9b5f4ad (patch)
tree973d8aea0244b8e8f069fadef5b9a679a3b596e9 /rsScriptC_Lib.cpp
parent83325b9675e01acd982f9036cee12f01084b34cd (diff)
downloadrs-aad4bc5231dd7059fc5148b34a951117d9b5f4ad.tar.gz
Handle user message ID 0
Pass RS runtime errors back to java. throw exceptions for runtime errors. Change-Id: Ifcf16cbbf9b98137971dced5076f8a5563eb016c
Diffstat (limited to 'rsScriptC_Lib.cpp')
-rw-r--r--rsScriptC_Lib.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/rsScriptC_Lib.cpp b/rsScriptC_Lib.cpp
index ecae306e..bb8e6a79 100644
--- a/rsScriptC_Lib.cpp
+++ b/rsScriptC_Lib.cpp
@@ -347,28 +347,28 @@ static uint32_t SC_toClient2(int cmdID, void *data, int len)
{
GET_TLS();
//LOGE("SC_toClient %i %i %i", cmdID, len);
- return rsc->sendMessageToClient(data, cmdID, len, false);
+ return rsc->sendMessageToClient(data, RS_MESSAGE_TO_CLIENT_USER, cmdID, len, false);
}
static uint32_t SC_toClient(int cmdID)
{
GET_TLS();
//LOGE("SC_toClient %i", cmdID);
- return rsc->sendMessageToClient(NULL, cmdID, 0, false);
+ return rsc->sendMessageToClient(NULL, RS_MESSAGE_TO_CLIENT_USER, cmdID, 0, false);
}
static uint32_t SC_toClientBlocking2(int cmdID, void *data, int len)
{
GET_TLS();
//LOGE("SC_toClientBlocking %i %i", cmdID, len);
- return rsc->sendMessageToClient(data, cmdID, len, true);
+ return rsc->sendMessageToClient(data, RS_MESSAGE_TO_CLIENT_USER, cmdID, len, true);
}
static uint32_t SC_toClientBlocking(int cmdID)
{
GET_TLS();
//LOGE("SC_toClientBlocking %i", cmdID);
- return rsc->sendMessageToClient(NULL, cmdID, 0, true);
+ return rsc->sendMessageToClient(NULL, RS_MESSAGE_TO_CLIENT_USER, cmdID, 0, true);
}
int SC_divsi3(int a, int b)