Overload List
| # | Signature | Description |
|---|---|---|
| 1 | void TestNil(IntPtr a) | Test one pointer, if it equals nil. |
| 2 | void TestNil(IntPtr a, IntPtr b) | Test two pointers, if they are nil. |
| 3 | void TestNil(IntPtr a, IntPtr b, IntPtr c) | Test three pointers, if they are nil. |
| 4 | void TestNil(IntPtr a, IntPtr b, IntPtr c, IntPtr d) | Raises exception if PAPointer is nil. |
Overload 1: void TestNil(IntPtr a)
Test one pointer, if it equals nil.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | a | IntPtr |
Result: stored in self (calling object)
Overload 2: void TestNil(IntPtr a, IntPtr b)
Test two pointers, if they are nil.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | a | IntPtr | |
| 2 | b | IntPtr |
Result: stored in self (calling object)
Overload 3: void TestNil(IntPtr a, IntPtr b, IntPtr c)
Test three pointers, if they are nil.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | a | IntPtr | |
| 2 | b | IntPtr | |
| 3 | c | IntPtr |
Result: stored in self (calling object)
Overload 4: void TestNil(IntPtr a, IntPtr b, IntPtr c, IntPtr d)
Raises exception if PAPointer is nil.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | a | IntPtr | |
| 2 | b | IntPtr | |
| 3 | c | IntPtr | |
| 4 | d | IntPtr |
Result: stored in self (calling object)
Remarks:
Raises exception any of the PAPointer variables is nil.
Examples
TVec a;
TVec b;
a = TVec.Create;
b = TVec.Create;
try
{
// ...
}
finally
{
a.Free;
}
TestNil(a,b);