Exemplo n.º 1
0
int FrAssertionFailed(const char *assertion, const char *file, size_t line)
{
   static const char format[] = "Assertion Failure at %s line %ld\n\t%s" ;
   if (failure_is_fatal)
      FrErrorVA(format,file,(long)line,assertion) ;
   else
      FrMessageVA(format,file,(long)line,assertion) ;
   return 0 ;
}
Exemplo n.º 2
0
int FramepaC_LRU_discard_frames()
{
   int discarded = 0 ;
#ifdef FrLRU_DISCARD
   if (discard_in_progress)
      return 0 ;
   discard_in_progress = true ;
   if (Initialized)
      do_all_symtabs(discard_oldest_frames, &discarded) ;
   if (discarded)
      {
      FrMessageVA("FramepaC: discarded %u virtual frames to free memory",
		  discarded) ;
      }
   discard_in_progress = false ;
#endif /* FrLRU_DISCARD */
   return discarded ;
}