library/src/debugging/BP-DebugInfoQueue.cc
// Pushes a new element into the queue
Pushes a new element into the queue
Pushes a new element into the queue
int DebugQueuePush(P_BP_DEBUG_QUEUE queue, P_RDEBUG_INFO debugInfo){
	P_BP_DEBUG_QUEUE next;
	if(queue->debugInfo == NULL){
		queue->debugInfo = debugInfo;
		return 0;
	} else {
		next = DebugQueueInit();
		next->first = queue->first;
		next->prev  = queue;
		next->next  = NULL;
		next->debugInfo = debugInfo;
		queue->next = next;
	}
	return 0;
}
int DebugQueuePush ( P_BP_DEBUG_QUEUE queue , P_RDEBUG_INFO debugInfo ) { P_BP_DEBUG_QUEUE next ; if ( queue -> debugInfo == NULL ) { queue -> debugInfo = debugInfo ; return 0 ; } else { next = DebugQueueInit ( ) ; next -> first = queue -> first ; next -> prev = queue ; next -> next = NULL ; next -> debugInfo = debugInfo ; queue -> next = next ; } return 0 ; }
Pushes a new element into the queue
Pushes a new element into the queue