aboutsummaryrefslogtreecommitdiffstats
path: root/c_src/sdl_filesystem.c
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2014-04-09 13:45:07 +0200
committerLoïc Hoguin <[email protected]>2014-04-09 13:45:07 +0200
commit889f87c866f647628aa552bfc36758fbc11ee24e (patch)
tree4fc7064f82c3526997a0f1392808e82702384017 /c_src/sdl_filesystem.c
parent0eb48d66447cca4a9b1e719542b9551357fc7a17 (diff)
downloadesdl2-889f87c866f647628aa552bfc36758fbc11ee24e.tar.gz
esdl2-889f87c866f647628aa552bfc36758fbc11ee24e.tar.bz2
esdl2-889f87c866f647628aa552bfc36758fbc11ee24e.zip
Add typespecs to the sdl_filesystem module
Again the interface had to change a little to better distinguish errors.
Diffstat (limited to 'c_src/sdl_filesystem.c')
-rw-r--r--c_src/sdl_filesystem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/c_src/sdl_filesystem.c b/c_src/sdl_filesystem.c
index cf6c601..4187bbe 100644
--- a/c_src/sdl_filesystem.c
+++ b/c_src/sdl_filesystem.c
@@ -30,7 +30,7 @@ NIF_FUNCTION(get_base_path)
SDL_free(path);
- return term;
+ return enif_make_tuple2(env, atom_ok, term);
}
// get_pref_path
@@ -53,5 +53,5 @@ NIF_FUNCTION(get_pref_path)
SDL_free(path);
- return term;
+ return enif_make_tuple2(env, atom_ok, term);
}