You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/reST/c_api/slots.rst
+2-2
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ base.c has this exposing the pg_RGBAFromObj function to the `c_api` structure:
16
16
17
17
Then in src_c/include/_pygame.h there is an
18
18
19
-
#define pg_RGBAFromObj.
19
+
#define pg_RGBAFromObj.
20
20
21
21
Also in _pygame.h, it needs to define the number of slots the base module uses. This is PYGAMEAPI_BASE_NUMSLOTS. So if you were adding another function, you need to increment this PYGAMEAPI_BASE_NUMSLOTS number.
22
22
@@ -25,6 +25,6 @@ Then to use the pg_RGBAFromObj in other files,
25
25
1) include the "pygame.h" file,
26
26
2) they have to make sure base is imported with:
27
27
28
-
import_pygame_base();
28
+
import_pygame_base();
29
29
30
30
Examples that use pg_RGBAFromObj are: _freetype.c, color.c, gfxdraw.c, and surface.c.
0 commit comments