hello.borg
hello.borg
` C++ licrary for borg
` testing qt in borg
{
load("down.borg");
jitcxx(generate_code("new_QPushButton_", "QPushButton * newtype(char *)", "#define newtype(a) new QPushButton(a)"));
jitcxx(generate_code("callother_QPushButton_resize", "void call_other(QPushButton *, int, int)", "#define call_other(ob, a,b) ob->resize(a,b)"));
jitcxx(generate_code("callother_QPushButton_show", "void call_other(QPushButton *)", "#define call_other(ob) ob->show()"));
b:new_QPushButton_("Hello!");
callother_QPushButton_resize(b,100,100);
callother_QPushButton_show(b);
1
}