Skip to content

Commit

Permalink
v1.2 updates
Browse files Browse the repository at this point in the history
  • Loading branch information
scopatz committed Nov 25, 2014
1 parent aec0bac commit d2af9dc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/stub_facility.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 3 additions & 1 deletion src/stub_inst.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
4 changes: 3 additions & 1 deletion src/stub_region.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit d2af9dc

Please sign in to comment.