Staging
v0.5.1
https://github.com/python/cpython
Revision 1e30bd3753e7b08dce13ff1e18ac1ae5c397fcea authored by Georg Brandl on 30 July 2010, 07:21:26 UTC, committed by Georg Brandl on 30 July 2010, 07:21:26 UTC
1 parent a91a94b
Raw File
Tip revision: 1e30bd3753e7b08dce13ff1e18ac1ae5c397fcea authored by Georg Brandl on 30 July 2010, 07:21:26 UTC
#9230: allow Pdb.checkline() to be called without a current frame, for setting breakpoints before starting debugging.
Tip revision: 1e30bd3
timefuncs.h
/*  timefuncs.h
 */

/* Utility function related to timemodule.c. */

#ifndef TIMEFUNCS_H
#define TIMEFUNCS_H
#ifdef __cplusplus
extern "C" {
#endif


/* Cast double x to time_t, but raise ValueError if x is too large
 * to fit in a time_t.  ValueError is set on return iff the return
 * value is (time_t)-1 and PyErr_Occurred().
 */
PyAPI_FUNC(time_t) _PyTime_DoubleToTimet(double x);


#ifdef __cplusplus
}
#endif
#endif  /* TIMEFUNCS_H */
back to top