eĿlipsis
a language independent preprocessor
 
Loading...
Searching...
No Matches
ellipsis-move-macro.h
Go to the documentation of this file.
1# once ELLIPSIS_MOVE
2# include_directives ⟨ellipsis-loc.h⟩
3
8# define ELLIPSIS_MOVE(TARGET, SOURCE, FREE) \
9/*>*/if (*TARGET) /*^*/\
10/*>*//*>*/FREE((void*)*TARGET); /*^*/\
11/*>*/if (SOURCE) { /*^*/\
12/*>*//*>*/*TARGET = *SOURCE; /*^*/\
13/*>*//*>*/*SOURCE = nullptr; /*^*/\
14/*>*/} else { /*^*/\
15/*>*//*>*/*TARGET = nullptr; /*^*/\
16/*>*/} /*^*/\
17