EgtInterface 2.7k1 :

- modifiche a funzioni EgtSetlevel, EgtSetMode e EgtSetStatus per mantenere inalterata l'interfaccia
- ricompilazione per passaggio a C++ 20.
This commit is contained in:
Dario Sassi
2025-11-01 17:40:53 +01:00
parent 62097608b0
commit c73d3d1a86
3 changed files with 7 additions and 9 deletions
+3 -5
View File
@@ -24,7 +24,7 @@ using namespace std ;
BOOL
__stdcall EgtSetLevel( int nId, int nLevel)
{
return ( ExeSetLevel( nId, nLevel) ? TRUE : FALSE) ;
return ( ExeSetLevel( {nId}, nLevel) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
@@ -52,7 +52,7 @@ __stdcall EgtGetCalcLevel( int nId, int* pnLevel)
BOOL
__stdcall EgtSetMode( int nId, int nMode)
{
return ( ExeSetMode( nId, nMode) ? TRUE : FALSE) ;
return ( ExeSetMode( {nId}, nMode) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
@@ -80,9 +80,7 @@ __stdcall EgtGetCalcMode( int nId, int* pnMode)
BOOL
__stdcall EgtSetStatus( int nId, int nStat)
{
INTVECTOR vIds ;
vIds.push_back( nId) ;
return ( ExeSetStatus( vIds, nStat) ? TRUE : FALSE) ;
return ( ExeSetStatus( {nId}, nStat) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------