FSE/FSEObject/ChaiConsole.cpp
/**
	 * \brief Replaces chaiscripts print and puts function with ones from this console.
	 * \param state Base application state before replacing the print functions
	 * \return Base application state after replacing print functions
	 */
\brief Replaces chaiscripts print and puts function with ones from this console.
\param state Base application state before replacing the print functions
\return Base application state after replacing print functions
\ brief Replaces chaiscripts print and puts function with ones from this console . \ param state Base application state before replacing the print functions \ return Base application state after replacing print functions
chaiscript::ChaiScript::State ChaiConsole::replaceDefaultPrints(const chaiscript::ChaiScript::State& state)
	{
		getChai()->set_state(state);
		addDefaultFuns();
		getChai()->eval("global print = fun[print](s) { ig_print(\"${s}\"); }");
		getChai()->eval("global puts = fun[print](s) { ig_puts(\"${s}\"); }");
		return getChai()->get_state();
	}
chaiscript :: ChaiScript :: State ChaiConsole :: replaceDefaultPrints ( const chaiscript :: ChaiScript :: State & state ) { getChai ( ) -> set_state ( state ) ; addDefaultFuns ( ) ; getChai ( ) -> eval ( " \" \" " ) ; getChai ( ) -> eval ( " \" \" " ) ; return getChai ( ) -> get_state ( ) ; }
\brief Replaces chaiscripts print and puts function with ones from this console.
\ brief Replaces chaiscripts print and puts function with ones from this console .