main fix
This commit is contained in:
20
main.cpp
20
main.cpp
@@ -4,29 +4,13 @@
|
|||||||
#include "pijson.h"
|
#include "pijson.h"
|
||||||
#include "pimathbase.h"
|
#include "pimathbase.h"
|
||||||
#include "pip.h"
|
#include "pip.h"
|
||||||
#include "piplugin.h"
|
|
||||||
#include "pivaluetree.h"
|
#include "pivaluetree.h"
|
||||||
#include "test_plugin_shared.h"
|
|
||||||
|
|
||||||
using namespace PICoutManipulators;
|
using namespace PICoutManipulators;
|
||||||
|
|
||||||
|
|
||||||
int main(int argc, char * argv[]) {
|
int main(int argc, char * argv[]) {
|
||||||
PIPluginLoader loader;
|
PICodeParser cp;
|
||||||
for (int j = 0; j < 2; ++j) {
|
cp.parseFile("kmm_types.h", false);
|
||||||
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user