From 2276dc7ad067f7af7504783239103c1abd7b4433 Mon Sep 17 00:00:00 2001 From: Vlad-Stefan Harbuz Date: Mon, 7 Feb 2022 13:08:52 +0100 Subject: refactor names from e.g. sdl2::init() to sdl2::SDL_Init() Signed-off-by: Vlad-Stefan Harbuz --- sdl2/sdl2.ha | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sdl2/sdl2.ha') 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; -- cgit v1.2.3