Changeset 8076 in orxonox.OLD for branches/script_engine/src/lib
- Timestamp:
- Jun 1, 2006, 3:36:12 PM (19 years ago)
- Location:
- branches/script_engine/src/lib/script_engine
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/script_engine/src/lib/script_engine/account.cc
r8073 r8076 42 42 ~Object() { printf("deleted Object (%p)\n", this); } 43 43 44 int getCallCount(lua_State* L){return getCallCount();} 44 45 45 46 int printName(lua_State* L) … … 50 51 } 51 52 53 int getCallCount(){return callCount;} 52 54 53 55 private: … … 60 62 Lunar<Object>::RegType Object::methods[] = { 61 63 method(Object, printName), 64 method(Object, getCallCount), 62 65 {0,0} 63 66 }; -
branches/script_engine/src/lib/script_engine/lunartest2.lua
r8072 r8076 19 19 io.write(" as parameter\n") 20 20 Obj:printName() 21 io.write("callCount is now",Obj:getCallCount()) 21 22 print('a =', a) 22 23 print('b =', b)
Note: See TracChangeset
for help on using the changeset viewer.