define ng_tcl_volatile, ...

This commit is contained in:
Joachim Schoeberl 2022-05-07 19:54:43 +02:00
parent 1a634c1957
commit bac77b1f58

View File

@ -21,16 +21,16 @@ typedef int (Tcl_CmdProc) (void * clientData, Tcl_Interp *interp,
typedef void (Tcl_FreeProc) (char *blockPtr); typedef void (Tcl_FreeProc) (char *blockPtr);
namespace netgen { namespace netgen {
/* /*
inline constexpr int NG_TCL_VOLATILE = 1; inline constexpr int NG_TCL_VOLATILE = 1;
inline constexpr int NG_TCL_STATIC = 0; inline constexpr int NG_TCL_STATIC = 0;
inline constexpr int NG_TCL_DYNAMIC = 3; inline constexpr int NG_TCL_DYNAMIC = 3;
*/ */
#define TCL_VOLATILE ((Tcl_FreeProc *) 1)
#define TCL_STATIC ((Tcl_FreeProc *) 0) #define NG_TCL_VOLATILE ((Tcl_FreeProc *) 1)
#define TCL_DYNAMIC ((Tcl_FreeProc *) 3) #define NG_TCL_STATIC ((Tcl_FreeProc *) 0)
#define NG_TCL_DYNAMIC ((Tcl_FreeProc *) 3)
inline constexpr int NG_TCL_OK = 0; inline constexpr int NG_TCL_OK = 0;
inline constexpr int NG_TCL_ERROR = 1; inline constexpr int NG_TCL_ERROR = 1;
inline constexpr int NG_TCL_RETURN = 2; inline constexpr int NG_TCL_RETURN = 2;