w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
Rutiltpp_Init.cpp
Go to the documentation of this file.
1// $Id: Rutiltpp_Init.cpp 1186 2019-07-12 17:49:59Z mueller $
2// SPDX-License-Identifier: GPL-3.0-or-later
3// Copyright 2011-2018 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4//
5// Revision History:
6// Date Rev Version Comment
7// 2014-08-22 584 1.0.4 use nullptr
8// 2013-05-17 512 1.0.3 add RtclSystem::CreateCmds()
9// 2013-02-10 485 1.0.2 remove Tcl_InitStubs()
10// 2011-03-20 372 1.0.1 renamed ..tcl -> ..tpp
11// 2011-03-19 371 1.0 Initial version
12// ---------------------------------------------------------------------------
13
18#include "tcl.h"
19
20#include <stdexcept>
21
22#include "RtclSystem.hpp"
23#include "RtclBvi.hpp"
24
25using namespace std;
26using namespace Retro;
27
28extern "C" int Rutiltpp_Init(Tcl_Interp* interp); // -Wmissing-prototypes fix
29
30//------------------------------------------+-----------------------------------
31extern "C" int Rutiltpp_Init(Tcl_Interp* interp)
32{
33 int irc;
34
35 // declare package name and version
36 irc = Tcl_PkgProvide(interp, "rutiltpp", "1.0.0");
37 if (irc != TCL_OK) return irc;
38
39 try {
40 // register general commands
42 RtclBvi::CreateCmds(interp);
43 return TCL_OK;
44
45 } catch (exception& e) {
46 Tcl_AppendResult(interp, "-E: exception caught in Rutiltpp_Init: '",
47 e.what(), "'", nullptr);
48 }
49 return TCL_ERROR;
50}
51
int Rutiltpp_Init(Tcl_Interp *interp)
static void CreateCmds(Tcl_Interp *interp)
FIXME_docs.
Definition: RtclBvi.cpp:43
static void CreateCmds(Tcl_Interp *interp)
FIXME_docs.
Definition: RtclSystem.cpp:49
Declaration of class ReventLoop.
Definition: ReventLoop.cpp:47