home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / programming / desklib / sources / DeskLib / !DLSources / OtherLibs / Debugs / c / Debug next >
Encoding:
Text File  |  1995-08-29  |  1.1 KB  |  47 lines

  1. /*
  2.     ####             #    #     # #
  3.     #   #            #    #       #          The FreeWare C library for
  4.     #   #  ##   ###  #  # #     # ###             RISC OS machines
  5.     #   # #  # #     # #  #     # #  #   ___________________________________
  6.     #   # ####  ###  ##   #     # #  #
  7.     #   # #        # # #  #     # #  #    Please refer to the accompanying
  8.     ####   ### ####  #  # ##### # ###    documentation for conditions of use
  9.     ________________________________________________________________________
  10.  
  11.     File:    Debug.c.Debug
  12.     Author:  Julian Smith
  13.     Version: 0.00 (10 Jul 1995)
  14.     Purpose: Core Debug things. This file's object file is LibFile-d into 
  15.              every debugging library.
  16. */
  17.  
  18. #include <stdlib.h>
  19.  
  20. #include "DeskLib:Debug.h"
  21.  
  22. int    debug_level = 0;
  23. /*
  24. Programs can set this to 0-5, and Debug1_Printf statements will
  25. come into effect.
  26. */
  27.  
  28.  
  29. int    Debug__Dummyf( const char *format, ...)
  30. {
  31. UNUSED( format);
  32. return 0;
  33. }
  34.  
  35.  
  36.  
  37.  
  38.  
  39. void    Debug__Assert( const char *expression, char *sourcefile, int line)
  40. {
  41. Debug_Printf( 
  42.     "Assertion '%s' failed at line %i of file '%s'.\n", 
  43.     expression, line, sourcefile
  44.     );
  45. abort();
  46. }
  47.