/* orxonox - the future of 3D-vertical-scrollers Copyright (C) 2004 orx This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. ### File Specific: main-programmer: ... co-programmer: ... */ //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ #include "executor_lua_state.h" #include "lunar.h" std::string temp[7]; template type fromLua(lua_State* state, int index) { type *obj = Lunar::check(state, 1); lua_remove(state, 1); return obj; }; template void toLua(lua_State* state, type value) { Lunar::push(state, value, false); }; template<> const std::string& fromLua(lua_State* state, int index) { temp[index] = lua_tostring(state, index); return temp[index]; };