You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/04/21 19:13:29 UTC

svn commit: r767229 - /commons/sandbox/runtime/trunk/src/main/native/include/acr_private.h

Author: mturk
Date: Tue Apr 21 17:13:29 2009
New Revision: 767229

URL: http://svn.apache.org/viewvc?rev=767229&view=rev
Log:
Cleanup macros

Modified:
    commons/sandbox/runtime/trunk/src/main/native/include/acr_private.h

Modified: commons/sandbox/runtime/trunk/src/main/native/include/acr_private.h
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/include/acr_private.h?rev=767229&r1=767228&r2=767229&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/include/acr_private.h (original)
+++ commons/sandbox/runtime/trunk/src/main/native/include/acr_private.h Tue Apr 21 17:13:29 2009
@@ -397,17 +397,17 @@
 
 #define CALL_METHOD1(I, O, V)  \
     if (_m##I##n.i) {                                                       \
-        (*_E)->CallVoidMethod(_E, (O), _m##I##n.i, (V), NULL);              \
+        (*_E)->CallVoidMethod(_E, (O), _m##I##n.i, (V));                    \
     } else (void)(0)
 
 #define CALL_METHOD2(I, O, V, X)  \
     if (_m##I##n.i) {                                                       \
-        (*_E)->CallVoidMethod(_E, (O), _m##I##n.i, (V), (X), NULL);         \
+        (*_E)->CallVoidMethod(_E, (O), _m##I##n.i, (V), (X));               \
     } else (void)(0)
 
 #define CALL_METHOD3(I, O, V, X, Y)  \
     if (_m##I##n.i) {                                                       \
-        (*_E)->CallVoidMethod(_E, (O), _m##I##n.i, (V), (X), (Y), NULL);    \
+        (*_E)->CallVoidMethod(_E, (O), _m##I##n.i, (V), (X), (Y));          \
     } else (void)(0)
 
 #define CALL_METHOD0(T, I, O)  \
@@ -416,13 +416,6 @@
 #define CALL_METHODN(T, I, O, ARGS)  \
         (*_E)->Call##T##Method(_E, (O), _m##I##n.i, ARGS)
 
-#define ACR_CHECK_ALLOCATED(V)                                  \
-        if ((V) == NULL) {                                      \
-            ACR_ThrowMemoryException(_E, __FILE__, __LINE__,    \
-            "OS memory allocation failed");                     \
-            goto cleanup;                                       \
-        } else (void)(0)
-
 #if defined(DEBUG) || defined(_DEBUG)
 /* In DEBUG mode always use statistics */
 #ifndef ACR_DO_STATS