Use int as opposed to void (for lua states)
This commit is contained in:
parent
f5acde9a69
commit
fd5b95dabc
1 changed files with 4 additions and 2 deletions
|
@ -22,7 +22,7 @@
|
||||||
#include "luak/lua_compat.h"
|
#include "luak/lua_compat.h"
|
||||||
#include "luak/luak.h"
|
#include "luak/luak.h"
|
||||||
|
|
||||||
static void
|
static int
|
||||||
l_kiwmi_cursor_hide(lua_State *L)
|
l_kiwmi_cursor_hide(lua_State *L)
|
||||||
{
|
{
|
||||||
struct kiwmi_object *obj =
|
struct kiwmi_object *obj =
|
||||||
|
@ -30,6 +30,7 @@ l_kiwmi_cursor_hide(lua_State *L)
|
||||||
struct kiwmi_cursor *cursor = obj->object;
|
struct kiwmi_cursor *cursor = obj->object;
|
||||||
|
|
||||||
cursor_hide(cursor);
|
cursor_hide(cursor);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
@ -46,7 +47,7 @@ l_kiwmi_cursor_pos(lua_State *L)
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static int
|
||||||
l_kiwmi_cursor_show(lua_State *L)
|
l_kiwmi_cursor_show(lua_State *L)
|
||||||
{
|
{
|
||||||
struct kiwmi_object *obj =
|
struct kiwmi_object *obj =
|
||||||
|
@ -54,6 +55,7 @@ l_kiwmi_cursor_show(lua_State *L)
|
||||||
struct kiwmi_cursor *cursor = obj->object;
|
struct kiwmi_cursor *cursor = obj->object;
|
||||||
|
|
||||||
cursor_show(cursor);
|
cursor_show(cursor);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|
Loading…
Add table
Reference in a new issue