diff options
| author | jacob1 <jfu614@gmail.com> | 2012-09-04 00:09:53 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-09-06 23:52:56 (GMT) |
| commit | f8f70a3f770b6cbc1e9c182572317c0968af718b (patch) | |
| tree | 03e94654817ce2c944bcc75f484313331e2daf9d /src/cat/LuaWindow.cpp | |
| parent | 58fa3dd539ad0ee7ebb44ec68515bdc22956c095 (diff) | |
| download | powder-f8f70a3f770b6cbc1e9c182572317c0968af718b.zip powder-f8f70a3f770b6cbc1e9c182572317c0968af718b.tar.gz | |
Visual studio compatibility
This removes some inlines when using visual studio to compile, uisng TPT_NO_INLINE. It also fixes many other problems visual studio has with the code
Diffstat (limited to 'src/cat/LuaWindow.cpp')
| -rw-r--r-- | src/cat/LuaWindow.cpp | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/src/cat/LuaWindow.cpp b/src/cat/LuaWindow.cpp index 06b29c8..c3f193b 100644 --- a/src/cat/LuaWindow.cpp +++ b/src/cat/LuaWindow.cpp @@ -1,8 +1,8 @@ extern "C" { -#include "lua.h" -#include "lauxlib.h" -#include "lualib.h" +#include "lua5.1/lua.h" +#include "lua5.1/lauxlib.h" +#include "lua5.1/lualib.h" } #include <iostream> @@ -353,6 +353,7 @@ int LuaWindow::onInitialized(lua_State * l) { onInitializedFunction = 0; } + return 0; } int LuaWindow::onExit(lua_State * l) @@ -367,6 +368,7 @@ int LuaWindow::onExit(lua_State * l) { onExitFunction = 0; } + return 0; } int LuaWindow::onTick(lua_State * l) @@ -381,6 +383,7 @@ int LuaWindow::onTick(lua_State * l) { onTickFunction = 0; } + return 0; } int LuaWindow::onDraw(lua_State * l) @@ -395,6 +398,7 @@ int LuaWindow::onDraw(lua_State * l) { onDrawFunction = 0; } + return 0; } int LuaWindow::onFocus(lua_State * l) @@ -409,6 +413,7 @@ int LuaWindow::onFocus(lua_State * l) { onFocusFunction = 0; } + return 0; } int LuaWindow::onBlur(lua_State * l) @@ -423,6 +428,7 @@ int LuaWindow::onBlur(lua_State * l) { onBlurFunction = 0; } + return 0; } int LuaWindow::onTryExit(lua_State * l) @@ -437,6 +443,7 @@ int LuaWindow::onTryExit(lua_State * l) { onTryExitFunction = 0; } + return 0; } int LuaWindow::onTryOkay(lua_State * l) @@ -451,6 +458,7 @@ int LuaWindow::onTryOkay(lua_State * l) { onTryOkayFunction = 0; } + return 0; } int LuaWindow::onMouseMove(lua_State * l) @@ -465,6 +473,7 @@ int LuaWindow::onMouseMove(lua_State * l) { onMouseMoveFunction = 0; } + return 0; } int LuaWindow::onMouseDown(lua_State * l) @@ -479,6 +488,7 @@ int LuaWindow::onMouseDown(lua_State * l) { onMouseDownFunction = 0; } + return 0; } int LuaWindow::onMouseUp(lua_State * l) @@ -493,6 +503,7 @@ int LuaWindow::onMouseUp(lua_State * l) { onMouseUpFunction = 0; } + return 0; } int LuaWindow::onMouseWheel(lua_State * l) @@ -507,6 +518,7 @@ int LuaWindow::onMouseWheel(lua_State * l) { onMouseWheelFunction = 0; } + return 0; } int LuaWindow::onKeyPress(lua_State * l) @@ -521,6 +533,7 @@ int LuaWindow::onKeyPress(lua_State * l) { onKeyPressFunction = 0; } + return 0; } int LuaWindow::onKeyRelease(lua_State * l) @@ -535,6 +548,7 @@ int LuaWindow::onKeyRelease(lua_State * l) { onKeyReleaseFunction = 0; } + return 0; } |
