diff options
author | Andy McFadden <fadden@android.com> | 2010-02-24 09:39:52 -0800 |
---|---|---|
committer | Andy McFadden <fadden@android.com> | 2010-02-24 09:39:52 -0800 |
commit | d4524479b8b87b88b75f269b3757bbc22361f7df (patch) | |
tree | ed31659c90b4d8128e3cc4cd60951449e9fc8439 /vm/Exception.h | |
parent | ba05d3b507d5e1de794d00e7e634862c2a7cf8c2 (diff) | |
download | android_dalvik-d4524479b8b87b88b75f269b3757bbc22361f7df.tar.gz android_dalvik-d4524479b8b87b88b75f269b3757bbc22361f7df.tar.bz2 android_dalvik-d4524479b8b87b88b75f269b3757bbc22361f7df.zip |
Added printf attribute to exception function.
Diffstat (limited to 'vm/Exception.h')
-rw-r--r-- | vm/Exception.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vm/Exception.h b/vm/Exception.h index f53c0bfcb..b812f732b 100644 --- a/vm/Exception.h +++ b/vm/Exception.h @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + /* * Exception handling. */ @@ -39,6 +40,11 @@ INLINE void dvmThrowException(const char* exceptionDescriptor, */ void dvmThrowExceptionFmtV(const char* exceptionDescriptor, const char* fmt, va_list args); +void dvmThrowExceptionFmt(const char* exceptionDescriptor, const char* fmt, ...) +#if defined(__GNUC__) + __attribute__ ((format(printf, 2, 3))) +#endif + ; INLINE void dvmThrowExceptionFmt(const char* exceptionDescriptor, const char* fmt, ...) { |