Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 16, 2006, 10:09:59 PM (18 years ago)
Author:
bensch
Message:

completely documented Executors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/lib/util/executor/executor_lua_state.h

    r9747 r9748  
    11/*!
    2  * @file executor_generic.h
    3  * Definition of a Generic Executor
     2 * @file executor_lua_state.h
     3 * Definition of a Executor that takes lua_State* as input.
    44 */
    55
     
    3232 #undef FUNCTOR_CALL_TYPE
    3333#endif
     34//! Define the Functor call type as lua_State*.
    3435#define FUNCTOR_CALL_TYPE lua_State*
    35 
    3636
    3737template<typename type> type fromLua(lua_State* state, int index);
     
    6464    return (fromLua<ToType>(CallValue, index+1));
    6565  }
     66  /**
     67   * @param state the state to write into
     68   * @param value the Value to write there.
     69   */
    6670  template <typename FromType>
    6771  static void storeRet(lua_State*& state, FromType value)
     
    6973    toLua<FromType>(state, value);
    7074  }
     75  /** @returns the Null Value of a lua_State*, namely (pointer-type) NULL */
    7176  static lua_State*& defaultValue() { static lua_State* nullState; return nullState; };
    7277};
Note: See TracChangeset for help on using the changeset viewer.