File: version.rst.txt

package info (click to toggle)
pygame 2.1.2%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 32,416 kB
  • sloc: ansic: 66,042; python: 46,176; javascript: 9,214; objc: 273; sh: 78; makefile: 56; cpp: 25
file content (31 lines) | stat: -rw-r--r-- 676 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
.. include:: ../common.txt

.. highlight:: c

******************************************
  API exported by pygame.version
******************************************

src_py/version.py
=================

Header file: src_c/include/pygame.h

Version information can be retrieved at compile-time using these macros.

.. versionadded:: 1.9.5

.. c:macro:: PG_MAJOR_VERSION

.. c:macro:: PG_MINOR_VERSION

.. c:macro:: PG_PATCH_VERSION

.. c:macro:: PG_VERSIONNUM(MAJOR, MINOR, PATCH)

   Returns an integer representing the given version.

.. c:macro:: PG_VERSION_ATLEAST(MAJOR, MINOR, PATCH)

   Returns true if the current version is at least equal
   to the specified version.