Search code examples
androidrenderscript

Dose RenderScript support "exception" in root function?


I am new to learn about renderscript. I am writing a small sample, and I found that when I write a try block in root, the compiler gives me a syntax error tip.So I want to know wheather render script could support exception in root functions.

I know the renderscript is based on C99, so maybe it can not support this, am I right?


Solution

  • Exceptions are a C++ feature, and are not available in C99. They are thus not available in RenderScript, since we are C99-based.