-
-
Notifications
You must be signed in to change notification settings - Fork 460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flecs script expression refactor #1461
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SanderMertens
force-pushed
the
expr_parser
branch
5 times, most recently
from
December 11, 2024 18:21
1c01e96
to
eecdb75
Compare
SanderMertens
force-pushed
the
expr_parser
branch
from
December 14, 2024 19:11
2c83d49
to
5d6b849
Compare
- Fix invalid write in flecs_path_append - Correctly handle name lookups with multiple consecutive separators - Correctly handle attempts to create entities with ids > UINT32_MAX - Improve cycle detection in observer code/prevent stack overflows
SanderMertens
force-pushed
the
expr_parser
branch
from
December 14, 2024 23:09
fd609fe
to
b9f0d4b
Compare
SanderMertens
force-pushed
the
expr_parser
branch
2 times, most recently
from
December 15, 2024 19:30
e675782
to
87b636e
Compare
- String entity names - String interpolation - For loops - Updated section on types - Added C examples on how to define functions/methods
SanderMertens
force-pushed
the
expr_parser
branch
4 times, most recently
from
December 15, 2024 21:47
faba5dd
to
fa8f5bc
Compare
SanderMertens
force-pushed
the
expr_parser
branch
from
December 15, 2024 21:49
fa8f5bc
to
0051026
Compare
pfeodrippe
added a commit
to pfeodrippe/flecs
that referenced
this pull request
Dec 21, 2024
…rtens#1461 Flecs script expression refactor` Adding a test only here \o
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR reimplements the expression part of Flecs script. The PR:
for
loopsconst
variables (variables that can be reused across scripts)FLECS_SCRIPT_MATH
addon with math functions (disabled by default)entity.has
,pair
,doc_uuid
,doc_brief
,doc_detail
,doc_link
,doc_color
)This PR fixes the following bugs/has the following improvements:
ecs_entity_desc_t::set
while deferring is suspendedecs_add_path_w_sep
FLECS_USE_OS_ALLOC
world->flags
on stage object%
) charactersflecs_path_append
ecs_entity_init
ecs_cmd_t::id
fieldThe PR introduces a number of breaking changes. More details here: #466 (comment)