~ubuntu-branches/ubuntu/maverick/python3.1/maverick

« back to all changes in this revision

Viewing changes to Include/pydebug.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-03-23 00:01:27 UTC
  • Revision ID: james.westby@ubuntu.com-20090323000127-5fstfxju4ufrhthq
Tags: upstream-3.1~a1+20090322
ImportĀ upstreamĀ versionĀ 3.1~a1+20090322

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
#ifndef Py_PYDEBUG_H
 
3
#define Py_PYDEBUG_H
 
4
#ifdef __cplusplus
 
5
extern "C" {
 
6
#endif
 
7
 
 
8
PyAPI_DATA(int) Py_DebugFlag;
 
9
PyAPI_DATA(int) Py_VerboseFlag;
 
10
PyAPI_DATA(int) Py_InteractiveFlag;
 
11
PyAPI_DATA(int) Py_InspectFlag;
 
12
PyAPI_DATA(int) Py_OptimizeFlag;
 
13
PyAPI_DATA(int) Py_NoSiteFlag;
 
14
PyAPI_DATA(int) Py_BytesWarningFlag;
 
15
PyAPI_DATA(int) Py_UseClassExceptionsFlag;
 
16
PyAPI_DATA(int) Py_FrozenFlag;
 
17
PyAPI_DATA(int) Py_IgnoreEnvironmentFlag;
 
18
PyAPI_DATA(int) Py_DivisionWarningFlag;
 
19
PyAPI_DATA(int) Py_DontWriteBytecodeFlag;
 
20
PyAPI_DATA(int) Py_NoUserSiteDirectory;
 
21
PyAPI_DATA(int) Py_UnbufferedStdioFlag;
 
22
 
 
23
/* this is a wrapper around getenv() that pays attention to
 
24
   Py_IgnoreEnvironmentFlag.  It should be used for getting variables like
 
25
   PYTHONPATH and PYTHONHOME from the environment */
 
26
#define Py_GETENV(s) (Py_IgnoreEnvironmentFlag ? NULL : getenv(s))
 
27
 
 
28
PyAPI_FUNC(void) Py_FatalError(const char *message);
 
29
 
 
30
#ifdef __cplusplus
 
31
}
 
32
#endif
 
33
#endif /* !Py_PYDEBUG_H */