From d2af9dcab3196322e09ad08c6276282dc564b180 Mon Sep 17 00:00:00 2001 From: Anthony Scopatz Date: Tue, 25 Nov 2014 15:56:47 -0600 Subject: [PATCH] v1.2 updates --- src/stub_facility.cc | 4 +++- src/stub_inst.cc | 4 +++- src/stub_region.cc | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/stub_facility.cc b/src/stub_facility.cc index 4eec43e..4afc063 100644 --- a/src/stub_facility.cc +++ b/src/stub_facility.cc @@ -16,7 +16,9 @@ void StubFacility::Tick() {} // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - void StubFacility::Tock() {} -// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +// WARNING! Do not change the following this function!!! This enables your +// archetype to be dynamically loaded and any alterations will cause your +// archetype to fail. extern "C" cyclus::Agent* ConstructStubFacility(cyclus::Context* ctx) { return new StubFacility(ctx); } diff --git a/src/stub_inst.cc b/src/stub_inst.cc index 77a4a75..8d1f0dd 100644 --- a/src/stub_inst.cc +++ b/src/stub_inst.cc @@ -13,7 +13,9 @@ std::string StubInst::str() { return Institution::str(); } -// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +// WARNING! Do not change the following this function!!! This enables your +// archetype to be dynamically loaded and any alterations will cause your +// archetype to fail. extern "C" cyclus::Agent* ConstructStubInst(cyclus::Context* ctx) { return new StubInst(ctx); } diff --git a/src/stub_region.cc b/src/stub_region.cc index e5c228c..8304289 100644 --- a/src/stub_region.cc +++ b/src/stub_region.cc @@ -13,7 +13,9 @@ std::string StubRegion::str() { return Region::str(); } -// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +// WARNING! Do not change the following this function!!! This enables your +// archetype to be dynamically loaded and any alterations will cause your +// archetype to fail. extern "C" cyclus::Agent* ConstructStubRegion(cyclus::Context* ctx) { return new StubRegion(ctx); }