aboutsummaryrefslogtreecommitdiff
path: root/src/lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua')
-rw-r--r--src/lua/graphics/luaopen_graphics.cpp2
-rw-r--r--src/lua/luaopen_jin.cpp22
-rw-r--r--src/lua/luaopen_types.h4
-rw-r--r--src/lua/time/luaopen_time.cpp4
4 files changed, 16 insertions, 16 deletions
diff --git a/src/lua/graphics/luaopen_graphics.cpp b/src/lua/graphics/luaopen_graphics.cpp
index 7db43c5..362ee93 100644
--- a/src/lua/graphics/luaopen_graphics.cpp
+++ b/src/lua/graphics/luaopen_graphics.cpp
@@ -491,7 +491,7 @@ namespace lua
{"line", l_drawLine},
{"rect", l_drawRect},
{"circle", l_drawCircle},
- {"triangle", l_drawTriangle},
+ {"triangle", l_drawTriangle},
{"polygon", l_drawPolygon},
//
{"destroy", l_destroy},
diff --git a/src/lua/luaopen_jin.cpp b/src/lua/luaopen_jin.cpp
index 93e0422..c50db14 100644
--- a/src/lua/luaopen_jin.cpp
+++ b/src/lua/luaopen_jin.cpp
@@ -8,7 +8,7 @@ namespace jin
{
namespace lua
{
-
+
extern int luaopen_core(lua_State* L);
extern int luaopen_graphics(lua_State* L);
extern int luaopen_audio(lua_State* L);
@@ -53,16 +53,16 @@ namespace lua
// submodules
static const luaL_Reg mods[] = {
- {"core", luaopen_core},
- {"event", luaopen_event},
- {"graphics", luaopen_graphics},
- {"time", luaopen_time},
- {"mouse", luaopen_mouse},
- {"keyboard", luaopen_keyboard},
- {"filesystem", luaopen_filesystem},
- {"net", luaopen_net},
- {"audio", luaopen_audio},
- {"joypad", luaopen_joypad},
+ {"core", luaopen_core},
+ {"event", luaopen_event},
+ {"graphics", luaopen_graphics},
+ {"time", luaopen_time},
+ {"mouse", luaopen_mouse},
+ {"keyboard", luaopen_keyboard},
+ {"filesystem", luaopen_filesystem},
+ {"net", luaopen_net},
+ {"audio", luaopen_audio},
+ {"joypad", luaopen_joypad},
{0, 0}
};
diff --git a/src/lua/luaopen_types.h b/src/lua/luaopen_types.h
index ed0d16d..8c1756f 100644
--- a/src/lua/luaopen_types.h
+++ b/src/lua/luaopen_types.h
@@ -18,12 +18,12 @@ namespace lua
class Proxy
{
public:
- inline void bind(void* obj)
+ inline void bind(const void* obj)
{
object = obj;
}
- void* object;
+ const void* object;
};
}
diff --git a/src/lua/time/luaopen_time.cpp b/src/lua/time/luaopen_time.cpp
index f7310dc..370d868 100644
--- a/src/lua/time/luaopen_time.cpp
+++ b/src/lua/time/luaopen_time.cpp
@@ -19,8 +19,8 @@ namespace lua
}
static const luaL_Reg f[] = {
- {"second", l_sec},
- {"sleep", l_sleep},
+ {"second", l_sec},
+ {"sleep", l_sleep},
{0, 0},
};