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/Script.cc

    r7653 r7654  
    1 #include <assert.h>
     1#include <cassert>
    22#include <string>
     3#include <iostream>
    34
    45#include "Script.h"
     
    224225   */
    225226
    226   void LuaScript::addParam (char *string)
    227   {
    228     assert (string != NULL && "LuaScript::addParam -> string == NULL");
    229     assert (virtualMachine.isOk () && "VM Not OK");
    230 
    231     BEGIN_LUA_CHECK (virtualMachine)
    232     lua_pushstring (state, string);
     227  void LuaScript::addParam (const std::string& string)
     228  {
     229    assert (virtualMachine.isOk () && "VM Not OK");
     230
     231    BEGIN_LUA_CHECK (virtualMachine);
     232    lua_pushstring (state, string.c_str());
    233233    ++argumentCount;
    234     END_LUA_CHECK
     234    END_LUA_CHECK;
    235235  }
    236236
Note: See TracChangeset for help on using the changeset viewer.