home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / mitsch75.zip / scheme-7_5_17-src.zip / scheme-7.5.17 / src / microcode / bkpt.h < prev    next >
C/C++ Source or Header  |  1999-01-02  |  2KB  |  62 lines

  1. /* -*-C-*-
  2.  
  3. $Id: bkpt.h,v 9.32 1999/01/02 06:11:34 cph Exp $
  4.  
  5. Copyright (c) 1987-1999 Massachusetts Institute of Technology
  6.  
  7. This program is free software; you can redistribute it and/or modify
  8. it under the terms of the GNU General Public License as published by
  9. the Free Software Foundation; either version 2 of the License, or (at
  10. your option) any later version.
  11.  
  12. This program is distributed in the hope that it will be useful, but
  13. WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15. General Public License for more details.
  16.  
  17. You should have received a copy of the GNU General Public License
  18. along with this program; if not, write to the Free Software
  19. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20. */
  21.  
  22. /* This file contains breakpoint utilities.
  23.    Disabled when not debugging the interpreter.
  24.    It "shadows" definitions in default.h */
  25.  
  26. #ifdef ENABLE_DEBUGGING_FLAGS
  27.  
  28. struct sp_record
  29. {
  30.   SCHEME_OBJECT * sp;
  31.   struct sp_record * next;
  32. };
  33.  
  34. typedef struct sp_record * sp_record_list;
  35.  
  36. #define debug_maxslots 100
  37.  
  38. #define Eval_Ucode_Hook()                        \
  39. {                                    \
  40.   (local_circle [local_slotno++]) = (Fetch_Expression ());        \
  41.   if (local_slotno >= debug_maxslots)                    \
  42.     local_slotno = 0;                            \
  43.   if (local_nslots < debug_maxslots)                    \
  44.     local_nslots += 1;                            \
  45. }
  46.  
  47. #define Pop_Return_Ucode_Hook()                        \
  48. {                                    \
  49.   if (SP_List != 0)                            \
  50.   {                                    \
  51.     Export_Registers ();                        \
  52.     Pop_Return_Break_Point ();                        \
  53.     Import_Registers ();                        \
  54.   }                                    \
  55. }
  56.  
  57. /* Not implemented yet */
  58.  
  59. #define Apply_Ucode_Hook()
  60.  
  61. #endif /* ENABLE_DEBUGGING_FLAGS */
  62.