Changeset 9748 in orxonox.OLD for branches/new_class_id/src/lib/util/executor/executor_lua_state.h
- Timestamp:
- Sep 16, 2006, 10:09:59 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/util/executor/executor_lua_state.h
r9747 r9748 1 1 /*! 2 * @file executor_ generic.h3 * Definition of a Generic Executor2 * @file executor_lua_state.h 3 * Definition of a Executor that takes lua_State* as input. 4 4 */ 5 5 … … 32 32 #undef FUNCTOR_CALL_TYPE 33 33 #endif 34 //! Define the Functor call type as lua_State*. 34 35 #define FUNCTOR_CALL_TYPE lua_State* 35 36 36 37 37 template<typename type> type fromLua(lua_State* state, int index); … … 64 64 return (fromLua<ToType>(CallValue, index+1)); 65 65 } 66 /** 67 * @param state the state to write into 68 * @param value the Value to write there. 69 */ 66 70 template <typename FromType> 67 71 static void storeRet(lua_State*& state, FromType value) … … 69 73 toLua<FromType>(state, value); 70 74 } 75 /** @returns the Null Value of a lua_State*, namely (pointer-type) NULL */ 71 76 static lua_State*& defaultValue() { static lua_State* nullState; return nullState; }; 72 77 };
Note: See TracChangeset
for help on using the changeset viewer.