CLR_RT_StackFrame PushValueAndClear is a method in Microsoft's .NET Micro Framework that pushes a managed object onto the evaluation stack and clears the reference on the top of the stack.
Code Example 1:
CLR_RT_HeapBlock* pResult; if(stack.PushValueAndClear(pResult) == S_OK) { // Do something with pResult }
This code example pushes a managed object onto the evaluation stack and clears the reference on the top of the stack, then checks if the operation was successful and if so, performs some action with the object.
Package Library: Microsoft.SPOT.Native
Code Example 2:
CLR_UINT64 value = 123456789; stack.PushValueAndClear(CLR_RT_HeapBlock_NativeUint64::CreateInstance(value));
This code example creates a CLR_UINT64 value and pushes it onto the evaluation stack, then clears the reference on the top of the stack.
Package Library: Microsoft.SPOT.Native.
C++ (Cpp) CLR_RT_StackFrame::PushValueAndClear - 30 examples found. These are the top rated real world C++ (Cpp) examples of CLR_RT_StackFrame::PushValueAndClear extracted from open source projects. You can rate examples to help us improve the quality of examples.