debug.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /* classes: h_files */
  2. #ifndef SCM_DEBUG_H
  3. #define SCM_DEBUG_H
  4. /* Copyright (C) 1995,1996,1998,1999,2000,2001,2002,2004,2008,2009,2010,2011,2012,2013
  5. * Free Software Foundation, Inc.
  6. *
  7. * This library is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU Lesser General Public License
  9. * as published by the Free Software Foundation; either version 3 of
  10. * the License, or (at your option) any later version.
  11. *
  12. * This library 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. * Lesser General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU Lesser General Public
  18. * License along with this library; if not, write to the Free Software
  19. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  20. * 02110-1301 USA
  21. */
  22. #include "libguile/__scm.h"
  23. #include "libguile/options.h"
  24. /* {Evaluator}
  25. */
  26. typedef union scm_t_debug_info
  27. {
  28. struct { SCM exp, env; } e;
  29. struct { SCM proc, args; } a;
  30. SCM id;
  31. } scm_t_debug_info;
  32. SCM_API SCM scm_local_eval (SCM exp, SCM env);
  33. SCM_API SCM scm_reverse_lookup (SCM env, SCM data);
  34. SCM_API SCM scm_debug_options (SCM setting);
  35. SCM_INTERNAL void scm_init_debug (void);
  36. #ifdef GUILE_DEBUG
  37. SCM_API SCM scm_debug_hang (SCM obj);
  38. #endif /*GUILE_DEBUG*/
  39. #endif /* SCM_DEBUG_H */
  40. /*
  41. Local Variables:
  42. c-file-style: "gnu"
  43. End:
  44. */