Skip to content

Commit

Permalink
Generated from commit 81a9e36e185f3643b88114f9a87903e25c75a89b
Browse files Browse the repository at this point in the history
  • Loading branch information
Pusnow committed Aug 27, 2021
1 parent a610761 commit 90979bd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/E/E_System.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ class System : private Log {
auto module = std::make_shared<T>(std::forward<Args>(args)...);
module->id = newModuleID();
bool ret = registeredModule.insert({module->id, module}).second;
(void)ret;
assert(ret);
return module;
}
Expand Down
3 changes: 3 additions & 0 deletions include/E/Networking/E_Host.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -378,12 +378,14 @@ class Host : public NetworkModule, public NetworkLog, public RoutingInfo {
if constexpr (std::is_base_of<HostModule, T>::value) {
auto hostModuleName = hostModule->getHostModuleName();
bool ret = hostModuleMap.insert({hostModuleName, hostModule}).second;
(void)ret;
assert(ret);
}

if constexpr (std::is_base_of<TimerModule, T>::value) {
auto timerModuleName = hostModule->getTimerModuleName();
bool ret = timerModuleMap.insert({timerModuleName, hostModule}).second;
(void)ret;
assert(ret);
}

Expand All @@ -393,6 +395,7 @@ class Host : public NetworkModule, public NetworkLog, public RoutingInfo {
.insert({Namespace(hostModule->domain, hostModule->protocol),
hostModule})
.second;
(void)ret;
assert(ret);
}
}
Expand Down
1 change: 1 addition & 0 deletions src/Networking/E_Host.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ Module::Message Host::messageReceived(const ModuleID from,
assert(iter != processInfoMap.end());

for (auto allSyscall : syscallMap) {
(void)allSyscall;
assert(
allSyscall.second !=
iter->second.application->pid); // no syscall pending for returned app
Expand Down

0 comments on commit 90979bd

Please sign in to comment.