|
|
|
@ -1,12 +1,12 @@
|
|
|
|
|
#include "cpp.h"
|
|
|
|
|
|
|
|
|
|
typedef struct ncuplot {
|
|
|
|
|
using ncuplot = struct ncuplot {
|
|
|
|
|
ncppplot<uint64_t> n;
|
|
|
|
|
} ncuplot;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
typedef struct ncdplot {
|
|
|
|
|
using ncdplot = struct ncdplot {
|
|
|
|
|
ncppplot<double> n;
|
|
|
|
|
} ncdplot;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
|
|
|
|
|
@ -16,7 +16,7 @@ ncuplot* ncuplot_create(ncplane* n, const ncplot_options* opts, uint64_t miny, u
|
|
|
|
|
if(ncppplot<uint64_t>::create(&ret->n, n, opts, miny, maxy)){
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
free(ret);
|
|
|
|
|
delete ret;
|
|
|
|
|
}
|
|
|
|
|
return nullptr;
|
|
|
|
|
}
|
|
|
|
@ -46,7 +46,7 @@ ncdplot* ncdplot_create(ncplane* n, const ncplot_options* opts, double miny, dou
|
|
|
|
|
if(ncppplot<double>::create(&ret->n, n, opts, miny, maxy)){
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
free(ret);
|
|
|
|
|
delete ret;
|
|
|
|
|
}
|
|
|
|
|
return nullptr;
|
|
|
|
|
}
|
|
|
|
|