///////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////
| 996 | ////////////////////////////////////////////////////////////////////// |
| 997 | ////////////////////////////////////////////////////////////////////// |
| 998 | void CScriptSystem::CreateMetatables() |
| 999 | { |
| 1000 | m_pUserDataMetatable = CreateTable(); |
| 1001 | m_pUserDataMetatable->AddRef(); |
| 1002 | |
| 1003 | m_pPreCacheBufferTable = CreateTable(); |
| 1004 | m_pPreCacheBufferTable->AddRef(); |
| 1005 | |
| 1006 | /* |
| 1007 | m_pUserDataMetatable->AddFunction( ) |
| 1008 | |
| 1009 | // Make Garbage collection for user data metatable. |
| 1010 | lua_newuserdatabox(L, this); |
| 1011 | lua_pushcclosure(L, CScriptSystem::GCTagHandler, 1); |
| 1012 | lua_settagmethod(L, m_nGCTag, "gc"); |
| 1013 | */ |
| 1014 | } |
| 1015 | |
| 1016 | ////////////////////////////////////////////////////////////////////// |
| 1017 | ////////////////////////////////////////////////////////////////////// |