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

Example program to test JLANG::JTypedef class. More...

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

Go to the source code of this file.

Macros

#define PRINT(OUT, T)
 

Functions

int main (int argc, char **argv)
 

Detailed Description

Example program to test JLANG::JTypedef class.

Author
mdejong

Definition in file JTypedef.cc.

Macro Definition Documentation

◆ PRINT

#define PRINT ( OUT,
T )
Value:
OUT << #T << ": typedef = " << JTypedef<T>::has_typedef << endl;

Definition at line 35 of file JTypedef.cc.

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

Definition at line 45 of file JTypedef.cc.

46{
47 using namespace std;
48
49 int debug;
50
51 try {
52
53 JParser<> zap("Example program to test type defs.");
54
55 zap['d'] = make_field(debug) = 3;
56
57 zap(argc, argv);
58 }
59 catch(const exception &error) {
60 FATAL(error.what() << endl);
61 }
62
63
64 PRINT(cout, __A__);
65 PRINT(cout, __B__);
66}
#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, T)
Definition JTypedef.cc:35
Utility class to parse command line options.
Definition JParser.hh:1698