63 {
64 GBL_RESULT result = GBL_RESULT_SUCCESS;
66
67 if(pObject) GBL_UNLIKELY {
69 if(pPrev && pPrev->pObject == pObject) GBL_LIKELY {
70 pContext = pPrev->pContext;
71 } else GBL_UNLIKELY {
72 pContext = GblObject_findContext(pObject);
73 }
74 }
75
76 if(!pContext) GBL_LIKELY {
77 pContext = GblThread_context(NULL);
78 }
79
80 pFrame->record.srcLocation.pFile = GBL_NULL;
81 pFrame->record.srcLocation.pFunc = GBL_NULL;
82 pFrame->record.result = initialResult;
83 pFrame->stackDepth = 0;
84 pFrame->sourceCurrentCaptureDepth = 0;
85 pFrame->pObject = pObject;
86 pFrame->pContext = pContext;
87 pFrame->pPrevFrame = NULL;
88 return result;
89}