19 printf(
"===>The macro games will try to build the Aclock library\n");
21 gSystem->Exec(
"(cd $ROOTSYS/test; make Aclock)");
23 gSystem->Exec(
"(cd %ROOTSYS%\\test && nmake -f Makefile.win32 Aclock.dll)");
25 st1 =
gSystem->Load(
"$(ROOTSYS)/test/Aclock");
29 printf(
"===>The macro games will try to build the Hello library\n");
31 gSystem->Exec(
"(cd $ROOTSYS/test; make Hello)");
33 gSystem->Exec(
"(cd %ROOTSYS%\\test && nmake -f Makefile.win32 Hello.dll)");
35 st2 =
gSystem->Load(
"$(ROOTSYS)/test/Hello");
40 printf(
"===>The macro games will try to build the Tetris library\n");
41 gSystem->Exec(
"(cd $ROOTSYS/test; make Tetris)");
43 gSystem->Exec(
"(cd %ROOTSYS%\\test && nmake -f Makefile.win32 Tetris.dll)");
45 st3 =
gSystem->Load(
"$(ROOTSYS)/test/Tetris");
47 if (st1 || st2 || st3) {
48 printf(
"ERROR: one of the shared libs in $ROOTSYS/test didn't load properly\n");
51 gROOT->ProcessLine(
"#define __RUN_GAMES__ 1");
54 gROOT->ProcessLine(
"#include \"Hello.h\"");
55 gROOT->ProcessLine(
"#include \"Aclock.h\"");
56 gROOT->ProcessLine(
"#include \"Tetris.h\"");
58 gROOT->ProcessLine(
"#include \"games.C\"");
59 gROOT->ProcessLine(
"rungames()");
60 gROOT->ProcessLine(
"#undef __RUN_GAMES__");
72 Hello *
hello =
new Hello();
75 Aclock *clock =
new Aclock();
78 Tetris *tetris =
new Tetris();
std::string hello(std::string who, std::string msg)
int Int_t
Signed integer 4 bytes (int).
bool Bool_t
Boolean (0=false, 1=true) (bool).