Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nullptr authored and LynnL4 committed Jun 3, 2024
1 parent d3de3a4 commit a86f676
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions sscma/callback/action.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#if SSCMA_CFG_ENABLE_ACTION

#include <cstdint>
#include <cstring>
#include <string>
Expand All @@ -16,6 +16,8 @@ using namespace edgelab;

using namespace sscma::utility;

#if SSCMA_CFG_ENABLE_ACTION

void set_action(const std::vector<std::string>& argv, void* caller, bool called_by_event = false) {
// get last condition expr string hash
auto hash = static_resource->action->get_condition_hash();
Expand Down Expand Up @@ -112,6 +114,8 @@ void get_action(const std::string& cmd, void* caller) {
static_cast<Transport*>(caller)->send_bytes(ss.c_str(), ss.size());
}

#endif

} // namespace sscma::callback

#endif

0 comments on commit a86f676

Please sign in to comment.