diff options
author | 2017-01-24 09:14:49 +0100 | |
---|---|---|
committer | 2017-01-25 22:17:48 +0100 | |
commit | ba03118b09d1cb116bc6fa73bfd3ab357444d947 (patch) | |
tree | 8551e8a47e92ddf6f82fab0ec542ca653fa8f7ed /src/lib/netlist/prg/nltool.cpp | |
parent | 25152bd69a070aa7ba84248b368b0803e407272a (diff) |
More netlist refactoring:
- Remove virtual from some destructors and make them protected.
- Various cleanups.
- Small performance improvement.
- Fixed some inconsistencies.
- More c++ refactoring. (nw)
Diffstat (limited to 'src/lib/netlist/prg/nltool.cpp')
-rw-r--r-- | src/lib/netlist/prg/nltool.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/lib/netlist/prg/nltool.cpp b/src/lib/netlist/prg/nltool.cpp index 14b7409b95e..19b453cb069 100644 --- a/src/lib/netlist/prg/nltool.cpp +++ b/src/lib/netlist/prg/nltool.cpp @@ -502,30 +502,11 @@ static const pstring pmf_verbose[] = }; #endif -struct tt -{ - void test(int a) {printf ("test :%d\n", a);} - int test1() { return 1;} -}; - -plib::pmfp<void, int> atest; -plib::pmfp<int> atest1; - int main(int argc, char *argv[]) { tool_options_t opts; int ret; - tt x; - - atest.set(&tt::test, &x); - atest1.set(&tt::test1, &x); - - atest(1); - int a = atest1(); - - printf("%d\n", a); - //return 1 ; /* make SIGFPE actually deliver signals on supoorted platforms */ plib::fpsignalenabler::global_enable(true); plib::fpsignalenabler sigen(plib::FP_ALL & ~plib::FP_INEXACT & ~plib::FP_UNDERFLOW); |