Skip to content

Commit

Permalink
Address reviews again
Browse files Browse the repository at this point in the history
  • Loading branch information
anutosh491 committed Dec 22, 2024
1 parent f2365b6 commit 1f67133
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/xinterpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,11 @@ __get_cxx_version ()
createInterpreter(Args(argv ? argv + 1 : argv, argv + argc));
m_version = get_stdopt();
redirect_output();
#ifndef EMSCRIPTEN
init_includes();
init_preamble();
init_magic();
#endif
}

interpreter::~interpreter()
Expand Down Expand Up @@ -363,9 +365,7 @@ __get_cxx_version ()

void interpreter::init_includes()
{
#ifndef EMSCRIPTEN
Cpp::AddIncludePath((xeus::prefix_path() + "/include/").c_str());
#endif
}

void interpreter::init_preamble()
Expand All @@ -384,9 +384,7 @@ __get_cxx_version ()
// preamble_manager["magics"].get_cast<xmagics_manager>().register_magic("timeit",
// timeit(&m_interpreter));
// preamble_manager["magics"].get_cast<xmagics_manager>().register_magic("python", pythonexec());
#ifndef EMSCRIPTEN
preamble_manager["magics"].get_cast<xmagics_manager>().register_magic("xassist", xassist());
preamble_manager["magics"].get_cast<xmagics_manager>().register_magic("file", writefile());
#endif
}
}

0 comments on commit 1f67133

Please sign in to comment.