main fix
This commit is contained in:
20
main.cpp
20
main.cpp
@@ -4,29 +4,13 @@
|
||||
#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();
|
||||
}
|
||||
PICodeParser cp;
|
||||
cp.parseFile("kmm_types.h", false);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user