Allow the PROFILE macro to be used outside Urho3D namespace.

This commit is contained in:
Lasse Öörni 2014-09-30 12:26:32 +03:00
parent 2c56c650af
commit fdc9ae79ab

View File

@ -256,7 +256,7 @@ private:
};
#ifdef URHO3D_PROFILING
#define PROFILE(name) AutoProfileBlock profile_ ## name (GetSubsystem<Profiler>(), #name)
#define PROFILE(name) Urho3D::AutoProfileBlock profile_ ## name (GetSubsystem<Urho3D::Profiler>(), #name)
#else
#define PROFILE(name)
#endif