From 1a634c195729da2225a27a2f39d7776417ea1733 Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Sat, 7 May 2022 19:45:38 +0200 Subject: [PATCH] Tcl_FreeProc + volatile/static/dynamic constants of correct type --- libsrc/meshing/visual_interface.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libsrc/meshing/visual_interface.hpp b/libsrc/meshing/visual_interface.hpp index 943737a0..e5da6521 100644 --- a/libsrc/meshing/visual_interface.hpp +++ b/libsrc/meshing/visual_interface.hpp @@ -22,10 +22,15 @@ typedef void (Tcl_FreeProc) (char *blockPtr); namespace netgen { + /* inline constexpr int NG_TCL_VOLATILE = 1; inline constexpr int NG_TCL_STATIC = 0; inline constexpr int NG_TCL_DYNAMIC = 3; - + */ +#define TCL_VOLATILE ((Tcl_FreeProc *) 1) +#define TCL_STATIC ((Tcl_FreeProc *) 0) +#define TCL_DYNAMIC ((Tcl_FreeProc *) 3) + inline constexpr int NG_TCL_OK = 0; inline constexpr int NG_TCL_ERROR = 1; inline constexpr int NG_TCL_RETURN = 2;