Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7703 in orxonox.OLD for branches


Ignore:
Timestamp:
May 18, 2006, 6:14:43 PM (19 years ago)
Author:
snellen
Message:

added test output

File:
1 edited

Legend:

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

    r7702 r7703  
    44
    55#include <string>
     6#include <iostream>
    67
    78#include "luaincl.h"
     
    8182      lua_newtable(L); /* new table object */
    8283      int  objRef = luaL_ref (L, LUA_REGISTRYINDEX);
     84std::cout<<"test"<<std::endl;
    8385      if(lua_getmetatable(L, objRef) != 0)
    8486       {
     87        std::cout<<"test"<<std::endl;
     88        lua_pushstring (L, "__gc");
    8589        lua_pushcfunction(L, &Luna<T>::gc_obj);
     90        lua_rawset(L,-3);
    8691//        lua_setfield(L, objRef, "__gc");
    8792       }
Note: See TracChangeset for help on using the changeset viewer.