MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / removeResource

Method removeResource

LuaSTGPlus/ResourceMgr.h:528–540  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

526 }
527 template <typename T>
528 void removeResource(Dictionary<fcyRefPointer<T>>& pool, const char* name)
529 {
530 auto i = pool.find(name);
531 if (i == pool.end())
532 {
533 LWARNING("RemoveResource: 试图移除一个不存在的资源'%m'", name);
534 return;
535 }
536 pool.erase(i);
537#ifdef LSHOWRESLOADINFO
538 LINFO("RemoveResource: 资源'%m'已卸载", name);
539#endif
540 }
541 public:
542 /// @brief 清空对象池
543 void Clear()LNOEXCEPT;

Callers

nothing calls this directly

Calls 1

findMethod · 0.80

Tested by

no test coverage detected