Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
442 B

  1. /* timefuncs.h
  2. */
  3. /* Utility function related to timemodule.c. */
  4. #ifndef TIMEFUNCS_H
  5. #define TIMEFUNCS_H
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9. /* Cast double x to time_t, but raise ValueError if x is too large
  10. * to fit in a time_t. ValueError is set on return iff the return
  11. * value is (time_t)-1 and PyErr_Occurred().
  12. */
  13. PyAPI_FUNC(time_t) _PyTime_DoubleToTimet(double x);
  14. #ifdef __cplusplus
  15. }
  16. #endif
  17. #endif /* TIMEFUNCS_H */