[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnet/include il_coder.h,1.33,1.34
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnet/include il_coder.h,1.33,1.34 |
Date: |
Thu, 14 Nov 2002 20:37:44 -0500 |
Update of /cvsroot/dotgnu-pnet/pnet/include
In directory subversions:/tmp/cvs-serv8950/include
Modified Files:
il_coder.h
Log Message:
Use "callvirt" instead of "call" to call non-virtual instance methods,
so that runtime null pointer checks happen automatically.
Index: il_coder.h
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/include/il_coder.h,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -r1.33 -r1.34
*** il_coder.h 24 Jun 2002 05:54:37 -0000 1.33
--- il_coder.h 15 Nov 2002 01:37:42 -0000 1.34
***************
*** 514,517 ****
--- 514,523 ----
/*
+ * Check a method call's first parameter for null.
+ */
+ void (*checkCallNull)(ILCoder *coder, ILEngineStackItem *args,
+ ILUInt32 numArgs);
+
+ /*
* Call a method directly.
*/
***************
*** 851,854 ****
--- 857,863 ----
((*((coder)->classInfo->valueCtorArgs))((coder),
(_classInfo), \
(args), (numArgs)))
+ #define ILCoderCheckCallNull(coder,args,numArgs) \
+ ((*((coder)->classInfo->checkCallNull))((coder),
(args), \
+
(numArgs)))
#define ILCoderCallMethod(coder,args,numArgs,returnItem,methodInfo) \
((*((coder)->classInfo->callMethod))((coder), (args), \
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnet/include il_coder.h,1.33,1.34,
Rhys Weatherley <address@hidden> <=