#include "rutz/fstring.h"
#include "rutz/trace.h"
#include <exception>
#include <tcl.h>
Go to the source code of this file.
Namespaces | |
namespace | tcl |
Classes | |
struct | tcl::package_info |
class | tcl::script_app |
Use inside main() to initialize and run a scripting application. More... | |
Defines | |
#define | GVX_SCRIPT_PROG_BEGIN(app, name, argc, argv) |
Call this macro at the beginning of main(). | |
#define | GVX_SCRIPT_PROG_END(app) |
Call this macro at the end of main(). |
Definition in file scriptapp.h.
#define GVX_SCRIPT_PROG_BEGIN | ( | app, | |||
name, | |||||
argc, | |||||
argv | ) |
Value:
try \ { \ GVX_TRACE(name); \ \ tcl::script_app::init_in_macro_only(); \ \ tcl::script_app app(name, argc, argv);
This will define a local variable of type script tcl::script_app, whose variable name is given by app.
Definition at line 107 of file scriptapp.h.
#define GVX_SCRIPT_PROG_END | ( | app | ) |
Value:
return app.exit_status(); \ } \ catch (std::exception& err) \ { \ tcl::script_app::handle_exception_in_macro_only(&err); \ } \ catch (...) \ { \ tcl::script_app::handle_exception_in_macro_only(0); \ } \ return -1;
Definition at line 118 of file scriptapp.h.