Garfield++ v1r0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
Loading...
Searching...
No Matches
ReplaceAlloc.h File Reference
#include <stdlib.h>

Go to the source code of this file.

Macros

#define macro_alloc
 

Macro Definition Documentation

◆ macro_alloc

#define macro_alloc
Value:
public: \
void* operator new(size_t size, void* adr = NULL) { \
if (adr == NULL) return malloc(size); \
return adr; \
} \
void* operator new[](size_t size, void* adr = NULL) { \
if (adr == NULL) return malloc(size); \
return adr; \
} \
void operator delete(void * f) { free(f); } \
void operator delete[](void * f) { free(f); }

Definition at line 10 of file ReplaceAlloc.h.