Fix SCM_SMOB_OBJECT{_,_0_,_1_,_2_,_3_}LOC.
[bpt/guile.git] / libguile / debug.h
CommitLineData
c7ecd529
MD
1/* classes: h_files */
2
13dcb666
DH
3#ifndef SCM_DEBUG_H
4#define SCM_DEBUG_H
b29058ff 5
d062a8c1 6/* Copyright (C) 1995,1996,1998,1999,2000,2001,2002,2004,2008,2009,2010,2012
434f2f7a 7 * Free Software Foundation, Inc.
b29058ff 8 *
73be1d9e 9 * This library is free software; you can redistribute it and/or
53befeb7
NJ
10 * modify it under the terms of the GNU Lesser General Public License
11 * as published by the Free Software Foundation; either version 3 of
12 * the License, or (at your option) any later version.
b29058ff 13 *
53befeb7
NJ
14 * This library is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
73be1d9e
MV
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
b29058ff 18 *
73be1d9e
MV
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
53befeb7
NJ
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22 * 02110-1301 USA
73be1d9e 23 */
d3a6bc94 24
c7ecd529
MD
25\f
26
b4309c3c 27#include "libguile/__scm.h"
c7ecd529 28
e771f866 29#include "libguile/options.h"
c7ecd529
MD
30\f
31
c7ecd529
MD
32/* {Evaluator}
33 */
34
92c2555f 35typedef union scm_t_debug_info
c7ecd529
MD
36{
37 struct { SCM exp, env; } e;
38 struct { SCM proc, args; } a;
473c250d 39 SCM id;
92c2555f 40} scm_t_debug_info;
c7ecd529 41
c7ecd529
MD
42\f
43
d062a8c1
AW
44SCM_API SCM scm_local_eval (SCM exp, SCM env);
45
33b001fd 46SCM_API SCM scm_reverse_lookup (SCM env, SCM data);
33b001fd
MV
47SCM_API SCM scm_procedure_source (SCM proc);
48SCM_API SCM scm_procedure_name (SCM proc);
33b001fd 49SCM_API SCM scm_debug_options (SCM setting);
9fcf3cbb 50
102dbb6f 51SCM_INTERNAL void scm_init_debug (void);
c7ecd529 52
f3667f52 53#ifdef GUILE_DEBUG
33b001fd 54SCM_API SCM scm_debug_hang (SCM obj);
f3667f52
JB
55#endif /*GUILE_DEBUG*/
56
5132eef0 57#if SCM_ENABLE_DEPRECATED == 1
434f2f7a 58
5132eef0
DH
59#define CHECK_ENTRY scm_check_entry_p
60#define CHECK_APPLY scm_check_apply_p
61#define CHECK_EXIT scm_check_exit_p
434f2f7a
DH
62
63/* Deprecated in guile 1.7.0 on 2004-03-29. */
64#define SCM_DEBUGGINGP scm_debug_mode_p
65#define scm_debug_mode scm_debug_mode_p
66
5132eef0
DH
67#endif
68
b29058ff 69#endif /* SCM_DEBUG_H */
89e00824
ML
70
71/*
72 Local Variables:
73 c-file-style: "gnu"
74 End:
75*/