Closed sayerhs closed 6 years ago
@jsitaraman Leaving out codetypes.h
from MeshBlock.h
header will fail with compilation of external codes because it needs definitions of the structs declared in codetypes.h
. I have updated the code so that we do leave in codetypes.h
but the macros have been prefixed with TIOGA_
so that they don't conflict with builtins or other codes.
Currently, namespace is only applied to TIOGA class definitions, but since tioga.h
header pulls in MeshBlock.h
etc. it still leaks TIOGA stuff into the common namespace.
Replace all macros (Min/Max, MIN/MAX, and free) with TIOGA_ prefixed versions to avoid conflicts with builtins as well as other codes.