fix Sdl.Error
This commit is contained in:
parent
e939348b3d
commit
deac764f0d
|
@ -1,5 +1,3 @@
|
|||
exception Sdl of string
|
||||
|
||||
module Sdl = struct
|
||||
include Tsdl.Sdl
|
||||
|
||||
|
@ -7,7 +5,7 @@ module Sdl = struct
|
|||
|
||||
let or_exn = function
|
||||
| Ok x -> x
|
||||
| Error (`Msg e) -> raise (Sdl e)
|
||||
| Error (`Msg e) -> raise (Error e)
|
||||
|
||||
let create_window_exn t ~w ~h fl = create_window t ~w ~h fl |> or_exn
|
||||
let gl_create_context_exn w = gl_create_context w |> or_exn
|
||||
|
|
Loading…
Reference in New Issue