Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e0a737a

Browse files
committed
Compile updates for Emscripten 3.1.47
1 parent 58326a8 commit e0a737a

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

include/behaviortree_cpp/action_node.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ class StatefulActionNode : public ActionNodeBase
186186
std::atomic_bool halt_requested_;
187187
};
188188

189+
#ifndef __EMSCRIPTEN__
190+
189191
/**
190192
* @brief The CoroActionNode class is an a good candidate for asynchronous actions
191193
* which need to communicate with an external service using an async request/reply interface.
@@ -228,6 +230,7 @@ class CoroActionNode : public ActionNodeBase
228230
void destroyCoroutine();
229231
};
230232

233+
#endif
231234

232235
} // namespace BT
233236

src/action_node.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,11 @@
1111
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1212
*/
1313

14+
#ifndef __EMSCRIPTEN__
1415
#define MINICORO_IMPL
1516
#include "minicoro/minicoro.h"
17+
#endif
18+
1619
#include "behaviortree_cpp/action_node.h"
1720

1821
using namespace BT;
@@ -64,6 +67,7 @@ NodeStatus SyncActionNode::executeTick()
6467
}
6568

6669
//-------------------------------------
70+
#ifdef MINICORO_IMPL
6771

6872
struct CoroActionNode::Pimpl
6973
{
@@ -145,6 +149,7 @@ void CoroActionNode::destroyCoroutine()
145149
}
146150
}
147151

152+
#endif
148153

149154
bool StatefulActionNode::isHaltRequested() const
150155
{

0 commit comments

Comments
 (0)