Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 17, 2006, 8:23:13 PM (18 years ago)
Author:
bensch
Message:

orxonox/script_engine: moved everything into cc-files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/script_engine/src/lib/script_engine/RestoreStack.h

    r7653 r7654  
    22#define __RESTORE_STACK_H__
    33
    4 #include "luaincl.h"
     4
     5#include "VirtualMachine.h"
     6/// Forward declaration
     7struct lua_State;
    58
    69namespace OrxScript
     
    1619     * @param virtualMachine the virtual machine to save
    1720     */
    18     LuaRestoreStack (LuaVirtualMachine& virtualMachine) : savedState (NULL)
    19     {
    20       savedState = (lua_State *) virtualMachine;
    21       if (virtualMachine.isOk ())
    22       {
    23         savedTopIndex = lua_gettop (savedState);
    24       }
    25     }
    26     /**
    27      * @brief Restores the virtual machine
    28      *
    29      *
    30      */
    31     virtual ~LuaRestoreStack (void)
    32     {
    33       lua_settop (savedState, savedTopIndex);
    34     }
     21    LuaRestoreStack (LuaVirtualMachine& virtualMachine);
     22    virtual ~LuaRestoreStack (void);
    3523
    3624  protected:
Note: See TracChangeset for help on using the changeset viewer.