MtxVec.TestNil Method

Overload List

#SignatureDescription
1void TestNil(IntPtr a)Test one pointer, if it equals nil.
2void TestNil(IntPtr a, IntPtr b)Test two pointers, if they are nil.
3void TestNil(IntPtr a, IntPtr b, IntPtr c)Test three pointers, if they are nil.
4void 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.

#NameTypeDescription
1aIntPtr

Result: stored in self (calling object)

Overload 2: void TestNil(IntPtr a, IntPtr b)

Test two pointers, if they are nil.

#NameTypeDescription
1aIntPtr
2bIntPtr

Result: stored in self (calling object)

Overload 3: void TestNil(IntPtr a, IntPtr b, IntPtr c)

Test three pointers, if they are nil.

#NameTypeDescription
1aIntPtr
2bIntPtr
3cIntPtr

Result: stored in self (calling object)

Overload 4: void TestNil(IntPtr a, IntPtr b, IntPtr c, IntPtr d)

Raises exception if PAPointer is nil.

#NameTypeDescription
1aIntPtr
2bIntPtr
3cIntPtr
4dIntPtr

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);