andrew-gresyk / ffsm2 Goto Github PK
View Code? Open in Web Editor NEWHigh-Performance Flat Finite State Machine Framework
Home Page: https://flat.hfsm.dev
License: MIT License
High-Performance Flat Finite State Machine Framework
Home Page: https://flat.hfsm.dev
License: MIT License
FFSM2
single-header library does not compile on 16-bits architectures.
FFSM2
cannot be compiled on a 16-bits architecture because the following code generates a compile-time error:
#if INTPTR_MAX == INT64_MAX
#define FFSM2_ARCHITECTURE_64() true
#define FFSM2_ARCHITECTURE_32() false
#define FFSM2_64BIT_OR_32BIT(p64, p32) p64
#elif INTPTR_MAX == INT32_MAX
#define FFSM2_ARCHITECTURE_64() false
#define FFSM2_ARCHITECTURE_32() true
#define FFSM2_64BIT_OR_32BIT(p64, p32) p32
#else
#error
#endif
The case for INTPTR_MAX == INT16_MAX
is missing.
Doing a simple find in the code, neither FFSM2_64BIT_OR_32BIT
nor FFSM2_ARCHITECTURE_32/64
defines seems to be used.
Commenting out those defines the code seems to compile just fine. Are they really needed?
Unfortunately, the compiler I'm using is not publicly available right now. You could reproduce the error by redefining INTPTR_MAX
as INT16_MAX
.
clang --version
): clang version 14.0.4
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.