#include #include #include #include "JLang/JLangToolkit.hh" #include "Jeep/JParser.hh" #include "Jeep/JMessage.hh" /** * \file * * Example program to test JLANG::getSize method. * \author mdejong */ int main(int argc, char **argv) { using namespace std; int debug; try { JParser<> zap("Example program to test getSize."); zap['d'] = make_field(debug) = 0; zap(argc, argv); } catch(const exception &error) { FATAL(error.what() << endl); } using namespace JPP; { int buffer[10]; cout << getSize(buffer) << endl; } { const int buffer[] = { 1, 2, 3 }; cout << getSize(buffer) << endl; } }