diff options
| author | Vlad-Stefan Harbuz <vlad@vladh.net> | 2022-02-07 13:08:52 +0100 |
|---|---|---|
| committer | Drew DeVault <sir@cmpwn.com> | 2022-02-07 18:56:08 +0100 |
| commit | 2276dc7ad067f7af7504783239103c1abd7b4433 (patch) | |
| tree | 20f2f98f4af8b2ff0efeb3b15f1a26e09702e908 /sdl2/sdl2.ha | |
| parent | correct indentation (diff) | |
| download | hare-chip8-2276dc7ad067f7af7504783239103c1abd7b4433.tar.gz | |
refactor names from e.g. sdl2::init() to sdl2::SDL_Init()
Signed-off-by: Vlad-Stefan Harbuz <vlad@vladh.net>
Diffstat (limited to 'sdl2/sdl2.ha')
| -rw-r--r-- | sdl2/sdl2.ha | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sdl2/sdl2.ha b/sdl2/sdl2.ha index 08e1234..d36ff2b 100644 --- a/sdl2/sdl2.ha +++ b/sdl2/sdl2.ha @@ -1,4 +1,4 @@ -// These are the flags which may be passed to [[init]]. You should specify the +// These are the flags which may be passed to [[SDL_Init]]. You should specify the // subsystems which you will be using in your application. export type init_flags = enum uint { TIMER = 0x00000001u, @@ -13,13 +13,13 @@ export type init_flags = enum uint { EVERYTHING = TIMER | AUDIO | VIDEO | EVENTS | JOYSTICK | HAPTIC | GAMECONTROLLER | SENSOR, }; -@symbol("SDL_Init") fn _init(flags: init_flags) int; +@symbol("SDL_Init") fn _SDL_Init(flags: init_flags) int; // This function initializes the subsystems specified by 'flags'. -export fn init(flags: init_flags) (void | error) = { - return wrapvoid(_init(flags)); +export fn SDL_Init(flags: init_flags) (void | error) = { + return wrapvoid(_SDL_Init(flags)); }; // This function cleans up all initialized subsystems. You should call it upon // all exit conditions. -export @symbol("SDL_Quit") fn quit() void; +export @symbol("SDL_Quit") fn SDL_Quit() void; |
