Files
pip/main.cpp
peri4 b8fc44714c version 3.15.0 - improved pip_cmg and PICodeInfo storage
Important! changed API to access PICodeInfo storage
2023-12-08 16:14:18 +03:00

33 lines
672 B
C++

#include "pibytearray.h"
#include "picodeparser.h"
#include "piiostream.h"
#include "pijson.h"
#include "pimathbase.h"
#include "pip.h"
#include "piplugin.h"
#include "pivaluetree.h"
#include "test_plugin_shared.h"
using namespace PICoutManipulators;
int main(int argc, char * argv[]) {
PIPluginLoader loader;
for (int j = 0; j < 2; ++j) {
piCout << "\nITER" << j;
loader.load("pip_plugin");
auto f = loader.resolve("myFunc");
if (f) {
PIMap<int, MyFunc> funcs;
((void (*)(PIMap<int, MyFunc> &))f)(funcs);
piCout << "size =" << funcs.size();
for (auto i: funcs) {
piCout << i.first;
i.second();
}
}
loader.unload();
}
return 0;
}