Use HasSymbol() instead of a null logger.

This commit is contained in:
Jeff Young 2023-12-28 21:52:26 +00:00
parent 5145b146e9
commit cdb99de862
1 changed files with 1 additions and 2 deletions

View File

@ -493,9 +493,8 @@ void NGSPICE::init_dll()
m_ngSpice_AllVecs = (ngSpice_AllVecs) m_dll.GetSymbol( "ngSpice_AllVecs" );
m_ngSpice_Running = (ngSpice_Running) m_dll.GetSymbol( "ngSpice_running" ); // it is not a typo
if( m_dll.HasSymbol( "ngSpice_LockRealloc" ) )
{
wxLogNull doNotLog; // disable logging so we don't get warnings on pre-ngspice42 dlls
m_ngSpice_LockRealloc = (ngSpice_LockRealloc) m_dll.GetSymbol( "ngSpice_LockRealloc" );
m_ngSpice_UnlockRealloc = (ngSpice_UnlockRealloc) m_dll.GetSymbol( "ngSpice_UnlockRealloc" );
}