#include <iostream>
#include "uCalc.h"

using namespace std;
using namespace uCalcSoftware;

void ucalc_call ItemCallback(uCalcBase::Callback cb) {
   cout << "Function '" << cb.Item().Name() << "' was called." << endl;
   cout << "It is defined with " << cb.Item().Count() << " parameters." << endl;
}
int main() {
   uCalc uc;
   uc.DefineFunction("MyFunc(x, y) As Double", ItemCallback);
   uc.EvalStr("MyFunc(1, 2)");
}