Jpp 19.3.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
JResolve.cc File Reference

Test of class JLANG::JResolve. More...

#include <iostream>
#include <iomanip>
#include "JLang/JResolve.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"

Go to the source code of this file.

Macros

#define PRINT(OUT, CLASS)
 

Functions

int main (int argc, char **argv)
 

Detailed Description

Test of class JLANG::JResolve.

Author
mdejong

Definition in file JResolve.cc.

Macro Definition Documentation

◆ PRINT

#define PRINT ( OUT,
CLASS )
Value:
OUT << setw(8) << std::left << #CLASS << ' ' << JLANG::JResolve<CLASS>::value << std::endl;
Test existence of class T.
Definition JResolve.hh:20

Definition at line 15 of file JResolve.cc.

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

Definition at line 24 of file JResolve.cc.

25{
26 using namespace std;
27
28 int debug;
29
30 try {
31
32 JParser<> zap("Example program to test whetger a class exists.");
33
34 zap['d'] = make_field(debug) =3;
35
36 zap(argc, argv);
37 }
38 catch(const exception &error) {
39 FATAL(error.what() << endl);
40 }
41
42 PRINT(cout, __A__);
43 PRINT(cout, __B__);
44
47
48 return 0;
49}
#define ASSERT(A,...)
Assert macro.
Definition JMessage.hh:90
#define FATAL(A)
Definition JMessage.hh:67
int debug
debug level
Definition JSirene.cc:72
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Definition JParser.hh:2142
#define PRINT(OUT, CLASS)
Definition JResolve.cc:15
Utility class to parse command line options.
Definition JParser.hh:1698