Skip to content

Feature/add prepro concatenation#427

Merged
boriel merged 20 commits intomasterfrom
feature/add_prepro_concatenation
Dec 27, 2020
Merged

Feature/add prepro concatenation#427
boriel merged 20 commits intomasterfrom
feature/add_prepro_concatenation

Conversation

@boriel
Copy link
Copy Markdown
Collaborator

@boriel boriel commented Dec 27, 2020

No description provided.

Now both zxbasm and zxbc preprocessors use a common
parent class.
Like in CPP infinite recursion (even indirect one)
is detected and cut-off. The last macro is left as is.
This allows to defined chained macros!
I.e.

 #define z q
 #define q(x) (x + 1)

 z(1)  => (1 + 1)
Taken these directives in context
Removes unnecesary whitespaces
Long time deprecated in favor of tox
Also add some typing (more work to be done).
When decorating a function with a timeout, now a
callable (i.e. a lambda) is allowed instead of a
value. If it's a callable, it will be called upon
execution and its return value will be used as a timeout
value.
When using -vd VIM is used to show diffs (vimdiff).
In that case, the timeout is disabled.
Patches now are detected more easily.
The count is carried out correctly and the test-file is
updated in a standard way.
This reflect new changes in the preprocessor.
Mainly the removal of useless spaces
@boriel boriel merged commit 30aef4f into master Dec 27, 2020
@boriel boriel deleted the feature/add_prepro_concatenation branch December 27, 2020 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant