You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AQuery/sdk/example.cpp

15 lines
283 B

// __AQ_NO_SESSION__
#include "../server/table.h"
#include "aquery.h"
__AQEXPORT__(ColRef_storage) mulvec(int a, ColRef<float> b){
return a * b;
}
__AQEXPORT__(double) mydiv(int a, int b){
printf("%d, %d\n", a, b);
double d = a/(double)b;
printf("%lf", d);
return d;
}