Patch level : 12.0 no-patch
Files correlati : Commento : Aggiunto metodo per aggiungere un booleano a una token_string Aggiunta safe_delete come funzione da usare al posto dell macro SAFE_DELETE che sarà eliminata
This commit is contained in:
parent
9807fb083c
commit
3d4a5a7807
@ -654,8 +654,10 @@ public:
|
||||
void add(int n, int pos = -1);
|
||||
// @cmember Aggiunge un reale
|
||||
void add(const real r, int pos = -1);
|
||||
// @cmember Aggiunge un reale
|
||||
void add(const TDate d, int pos = -1);
|
||||
// @cmember Aggiunge un reale
|
||||
void add(const TDate d, int pos = -1);
|
||||
// @cmember Aggiunge un booleano
|
||||
void add(bool on, int pos = -1) { add(on ? "X" : ""); }
|
||||
// @cmember Inserisce una stringa
|
||||
void insert_at(const char* s, int n);
|
||||
// @cmember Toglie la stringa di posizione pos
|
||||
|
@ -16,7 +16,7 @@
|
||||
#include <lffiles.h>
|
||||
|
||||
#define STRINGIFY(x) #x
|
||||
#define SAFE_DELETE(p) { if( (p) != nullptr ) delete (p); (p) = nullptr; }
|
||||
#define SAFE_DELETE(p) safe_delete(p)
|
||||
#define TOSTRING(x) STRINGIFY(x)
|
||||
#define DEBUG_ENABLED is_debug_station()
|
||||
|
||||
@ -24,6 +24,10 @@ bool sirio_codesigning(const TFilename& filename, bool verify = false);
|
||||
#define SIRIOSIGN(filename) sirio_codesigning((const TFilename&)((filename)), false)
|
||||
#define SIRIOSIGN_VERIFY(filename) sirio_codesigning((const TFilename&)((filename)), true)
|
||||
|
||||
template<typename T> void safe_delete(T*& a) {
|
||||
delete a;
|
||||
a = nullptr;
|
||||
}
|
||||
|
||||
class TPerformance_profiler : public TObject
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user