Commits

Jed Brown committed e1e7ae0

__FUNCT__ "User provided function" in public headers with inlines

Comments (0)

Files changed (4)

include/petscctable.h

   PetscFunctionReturn(0);
 }
 
+/* Reset __FUNCT__ in case the user does not define it themselves */
+#undef __FUNCT__
+#define __FUNCT__ "User provided function"
+
 #endif

include/petsclog.h

 PETSC_EXTERN PetscBool PetscPreLoadingUsed;       /* true if we are or have done preloading */
 PETSC_EXTERN PetscBool PetscPreLoadingOn;         /* true if we are currently in a preloading calculation */
 
+/* Reset __FUNCT__ in case the user does not define it themselves */
+#undef __FUNCT__
+#define __FUNCT__ "User provided function"
+
 #endif

include/petscviewer.h

 PETSC_EXTERN PetscErrorCode PetscViewersDestroy(PetscViewers*);
 PETSC_EXTERN PetscErrorCode PetscViewersGetViewer(PetscViewers,PetscInt,PetscViewer*);
 
+/* Reset __FUNCT__ in case the user does not define it themselves */
+#undef __FUNCT__
+#define __FUNCT__ "User provided function"
+
 #endif

include/petscviewerhdf5.h

 PETSC_EXTERN PetscErrorCode PetscViewerHDF5SetTimestep(PetscViewer,PetscInt);
 PETSC_EXTERN PetscErrorCode PetscViewerHDF5GetTimestep(PetscViewer,PetscInt*);
 
+/* Reset __FUNCT__ in case the user does not define it themselves */
+#undef __FUNCT__
+#define __FUNCT__ "User provided function"
+
 #endif