| 6 | } |
| 7 | |
| 8 | BOOL ExpLua_SObject(lua_State *L) |
| 9 | { |
| 10 | try{ |
| 11 | lua_tinker::class_add<IObject>(L,"IObject"); |
| 12 | lua_tinker::class_def<IObject>(L,"IsClass",&IObject::IsClass); |
| 13 | lua_tinker::class_def<IObject>(L,"GetObjectClass",&IObject::GetObjectClass); |
| 14 | lua_tinker::class_def<IObject>(L,"InitFromXml",&IObject::InitFromXml); |
| 15 | lua_tinker::class_def<IObject>(L,"SetAttribute",(HRESULT (IObject::*)(const char *, const char *, BOOL))&IObject::SetAttribute); |
| 16 | lua_tinker::class_def<IObject>(L,"SetAttributeA",(HRESULT (IObject::*)(const SStringA &, const SStringA &, BOOL))&IObject::SetAttribute); |
| 17 | lua_tinker::class_def<IObject>(L,"SetAttributeW",(HRESULT (IObject::*)(const SStringW &, const SStringW &, BOOL))&IObject::SetAttribute); |
| 18 | lua_tinker::class_def<IObject>(L,"GetID",&IObject::GetID); |
| 19 | lua_tinker::class_def<IObject>(L,"GetName",&IObject::GetName); |
| 20 | lua_tinker::def(L,"SetObjAttr",SetObjAttr); |
| 21 | return TRUE; |
| 22 | }catch(...) |
| 23 | { |
| 24 | return FALSE; |
| 25 | } |
| 26 | } |
no test coverage detected