Code Monkey home page Code Monkey logo

yasmine's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

yasmine's Issues

Can't build ('make') lib on macOS Sierra v 10.12.6

clang -v
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
/Users/alualu/Downloads/yasmine/yasmine_model/source/json_reader.cpp:558:8: error: no viable conversion from returned value of type 'SX_UNIQUE_PTR<model::transition_model_impl>'
      to function return type 'SX_UNIQUE_PTR<sxy::model::transition_model>'
        return( transition );
              ^~~~~~~~~~~~~~

Cmake fails on release 1.5.2

Running cmake -DCPP_VERSION=14 -DSX_NO_LOGGING=ON .. caused a Cmake error for me citing "SX_ASSERT" was not defined. Removing the SX_NO_LOGGING bit succeeds. Can you reproduce with a clean build?

Bad file path

Info from pull request: "The current file path is neither relative nor absolute and causes build failures."

Please approve my pull request for the fix.

Compilation bug for g++

Compiling yasmine with g++ (tested 4.9 and 5.4) with following compile commands

cmake -G "Unix Makefiles" -DCMAKE_CXX_FLAGS=-m64 .
make

fails with
yasmine/yasmine/color_mapping.cpp: In member function ‘sxy::color sxy::color_mapping::get_color(sxy::log_level) const’:
yasmine/yasmine/color_mapping.cpp:68:16: error: ‘color’ is not a class, namespace, or enumeration color color = color::C_WHITE;

Apparently the compiler tries to use the object 'color' instead of the class 'color' at this position.
Changing the name for the variable fixed compilation for me.

Missing ports for macros

In the current version of yasmine, some of the macros were not ported to the new method signature, thus any compilations will fail when these macros are used.

The missing macros are (respectively their SELECT variants):

  • Y_BEHAVIOR_ACTION
  • Y_GUARD_ACTION

This:
[ this ]( const sxy::event& _event ){ SX_UNUSED_PARAMETER(_event); _action }
should be replaced with
[ this ]( const sxy::event& _event, sxy::event_collector& _event_collector ){ SX_UNUSED_PARAMETER(_event); SX_UNUSED_PARAMETER(_event_collector); _action }

yasmine.hpp references files that aren't installed

@SeadexWP @SeadexTM

After installing yasmine using 'make install' and trying to use the headers from /usr/local/include/yasmine, my code includes yasmine.hpp. However, yasmine.hpp attempts to include a few files that aren't present in /usr/local/include/yasmine (haven't been installed):

#include "backward_compatibility.hpp"

#include "essentials/compatibility/compatibility.hpp"
#include "essentials/compatibility/chrono.hpp"
#include "essentials/compatibility/thread.hpp"

These files should be included in the installation. It seems that the library hasn't been tested with sample code that accesses the library from /usr/local/include.

State machine inside template class fails compilation on GCC/Ubuntu

Hello! First of all, thank you for such a great library :)

Y_BEHAVIOR_FUNCTION2 and Y_GUARD_METHOD2 fails to compile when passing template class member function to them only on GCC/Ubuntu. MSVC/Windows works fine. The fix is to use "typename std::remove_pointer" instead of "std::remove_pointer" inside assemblies.hpp.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.