diff options
author | antirez <antirez> | 2005-03-31 12:20:21 +0000 |
---|---|---|
committer | antirez <antirez> | 2005-03-31 12:20:21 +0000 |
commit | 6b53d12f84d9a2f2efa810038ce4a7c2146de928 (patch) | |
tree | 48d07e7d070b9c8f598ac932b98950ca3a65f088 /jim-sdl.c | |
parent | 15dc45ec7c7c6f9e31300b6c025f46d8adec16d8 (diff) | |
download | jimtcl-6b53d12f84d9a2f2efa810038ce4a7c2146de928.zip jimtcl-6b53d12f84d9a2f2efa810038ce4a7c2146de928.tar.gz jimtcl-6b53d12f84d9a2f2efa810038ce4a7c2146de928.tar.bz2 |
Implemented the C API "background" for the packages system of Jim.
Diffstat (limited to 'jim-sdl.c')
-rw-r--r-- | jim-sdl.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,7 +1,7 @@ /* Jim - SDL extension * Copyright 2005 Salvatore Sanfilippo <antirez@invece.org> * - * $Id: jim-sdl.c,v 1.2 2005/03/26 14:12:32 antirez Exp $ + * $Id: jim-sdl.c,v 1.3 2005/03/31 12:20:21 antirez Exp $ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -224,8 +224,9 @@ static int JimSdlSurfaceCommand(Jim_Interp *interp, int argc, int Jim_OnLoad(Jim_Interp *interp) { - Jim_InitExtension(interp, "1.0"); - + Jim_InitExtension(interp); + if (Jim_PackageProvide(interp, "sdl", "1.0", JIM_ERRMSG) != JIM_OK) + return JIM_ERR; if (SDL_Init(SDL_INIT_VIDEO) < 0) { JimSdlSetError(interp); return JIM_ERR; |