aboutsummaryrefslogtreecommitdiff
path: root/jim-sdl.c
diff options
context:
space:
mode:
Diffstat (limited to 'jim-sdl.c')
-rw-r--r--jim-sdl.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/jim-sdl.c b/jim-sdl.c
index 4293408..d8092a9 100644
--- a/jim-sdl.c
+++ b/jim-sdl.c
@@ -535,9 +535,7 @@ static int JimSdlSurfaceCommand(Jim_Interp *interp, int argc, Jim_Obj *const *ar
int Jim_sdlInit(Jim_Interp *interp)
{
- if (Jim_PackageProvide(interp, "sdl", "1.0", JIM_ERRMSG))
- return JIM_ERR;
-
+ Jim_PackageProvideCheck(interp, "sdl");
Jim_CreateCommand(interp, "sdl.screen", JimSdlSurfaceCommand, NULL, NULL);
return JIM_OK;
}