diff options
Diffstat (limited to 'src/image')
| -rw-r--r-- | src/image/image.c | 8 | 
1 files changed, 8 insertions, 0 deletions
diff --git a/src/image/image.c b/src/image/image.c index 1c747e2..13152d0 100644 --- a/src/image/image.c +++ b/src/image/image.c @@ -7,6 +7,7 @@  #include "image.h" +int empty(lua_State *L);  int load_image(lua_State *L);  int free_image(lua_State *L); @@ -26,6 +27,7 @@ void setup_image(lua_State *L, int honey_index)  {  	hs_create_table(L,  		/* basic images */ +		hs_str_cfunc("null", empty),  		hs_str_cfunc("load", load_image),  		hs_str_cfunc("destroy", free_image), @@ -56,6 +58,12 @@ void setup_image(lua_State *L, int honey_index)  /* --===== basic images =====-- */ +int empty(lua_State *L) +{ +	lua_pushlightuserdata(L, NULL); +	return 1; +} +  int load_image(lua_State *L)  {  	char *filename;  | 
