Skip to content

Commit

Permalink
VG_VERIFY warning fix when !VG_ENABLE_ASSERT
Browse files Browse the repository at this point in the history
  • Loading branch information
Benualdo committed Sep 15, 2024
1 parent ae8fc6f commit c2ac9bf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
18 changes: 0 additions & 18 deletions src/audio/Sound/Sound.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,24 +49,6 @@ namespace vg::audio
VG_SAFE_DELETE(m_slAudioSource);
}

////--------------------------------------------------------------------------------------
//void Sound::SetSoundFlags(SoundFlags _flags, bool _enabled)
//{
// if (_enabled)
// m_soundFlags |= _flags;
// else
// m_soundFlags &= ~_flags;
//
// if (asBool(SoundFlags::Loop & _flags))
// m_slAudioSource->setLooping(_enabled);
//}
//
////--------------------------------------------------------------------------------------
//SoundFlags Sound::GetSoundFlags() const
//{
// return m_soundFlags;
//}

//--------------------------------------------------------------------------------------
AudioSourceType Sound::getAudioSourceTypeFromFilename(const core::string & _filename)
{
Expand Down
2 changes: 1 addition & 1 deletion src/core/Precomp.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ namespace vg::core
#define VG_VERIFY(f) VG_ASSERT(f)
#else
#define VG_ASSERT(condition, ...) __noop
#define VG_VERIFY(f) f
#define VG_VERIFY(f) ((void)(f))
#endif

#define VG_ASSERT_ENUM_NOT_IMPLEMENTED(value) VG_ASSERT(false, "case %s: is not implemented", vg::core::asString(value).c_str());
Expand Down

0 comments on commit c2ac9bf

Please sign in to comment.