mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 21:10:33 +05:00
fix ngsolve loading
This commit is contained in:
parent
1a174508db
commit
81f5ed5415
@ -15,7 +15,7 @@ target_sources(nglib PRIVATE onetcl.cpp)
|
||||
|
||||
if(USE_GUI)
|
||||
target_sources(nggui PRIVATE
|
||||
gui.cpp ngpkg.cpp demoview.cpp parallelfunc.cpp
|
||||
gui.cpp ngpkg.cpp demoview.cpp parallelfunc.cpp ngtcl.cpp
|
||||
)
|
||||
|
||||
if(NOT BUILD_FOR_CONDA)
|
||||
|
16
ng/ngtcl.cpp
16
ng/ngtcl.cpp
@ -1,9 +1,19 @@
|
||||
#include <inctcl.hpp>
|
||||
#include "../libsrc/meshing/visual_interface.hpp"
|
||||
|
||||
#include <inctcl.hpp>
|
||||
|
||||
static void Impl_Ng_Tcl_SetResult(Tcl_Interp *interp, char *result, const int freeProc)
|
||||
{
|
||||
Tcl_SetResult(interp, result, (Tcl_FreeProc*)freeProc);
|
||||
}
|
||||
|
||||
static void Impl_Ng_Tcl_CreateCommand(Tcl_Interp *interp, const char *cmdName, Tcl_CmdProc *proc)
|
||||
{
|
||||
Tcl_CreateCommand(interp, cmdName, proc, nullptr, nullptr);
|
||||
}
|
||||
|
||||
static bool dummy_init_pointers = [](){
|
||||
Ptr_Ng_Tcl_SetResult = Tcl_SetResult;
|
||||
Ptr_Ng_Tcl_CreateCommand = Tcl_CreateCommand;
|
||||
netgen::Ptr_Ng_Tcl_SetResult = Impl_Ng_Tcl_SetResult;
|
||||
netgen::Ptr_Ng_Tcl_CreateCommand = Impl_Ng_Tcl_CreateCommand;
|
||||
return true;
|
||||
}();
|
||||
|
Loading…
Reference in New Issue
Block a user