Commits

Marcus von Appen committed 2d125a9

- added sdl2.SDL_GetSystemRAM() function from the latest SDL2 upstream changes

  • Participants
  • Parent commits c9584f2

Comments (0)

Files changed (1)

File sdl2/cpuinfo.py

 from ctypes import c_int
-from .dll import _bind
+from .dll import _bind, nullfunc
 from .stdinc import SDL_bool
 
 __all__ = ["SDL_CACHELINE_SIZE", "SDL_GetCPUCount", "SDL_GetCPUCacheLineSize",
            "SDL_HasRDTSC", "SDL_HasAltiVec", "SDL_HasMMX", "SDL_Has3DNow",
            "SDL_HasSSE", "SDL_HasSSE2", "SDL_HasSSE3", "SDL_HasSSE41",
-           "SDL_HasSSE42"
+           "SDL_HasSSE42", "SDL_GetSystemRAM"
            ]
 
 SDL_CACHELINE_SIZE = 128
 SDL_HasSSE3 = _bind("SDL_HasSSE3", None, SDL_bool)
 SDL_HasSSE41 = _bind("SDL_HasSSE41", None, SDL_bool)
 SDL_HasSSE42 = _bind("SDL_HasSSE42", None, SDL_bool)
+SDL_GetSystemRAM = _bind("SDL_GetSystemRAM", None, c_int, nullfunc)