Skip to content
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

macros doesn't work well with IteratorArray and Iterator #14

Open
Zorono opened this issue Aug 6, 2024 · 0 comments
Open

macros doesn't work well with IteratorArray and Iterator #14

Zorono opened this issue Aug 6, 2024 · 0 comments

Comments

@Zorono
Copy link

Zorono commented Aug 6, 2024

when i try to use macros on foreach function, it results in

error 001: expected token: ";", but found ":"
warning 215: expression has no effect
error 029: invalid expression, assumed zero

like

#define TEST:: gng_

new Iterator:TEST::PLAYERS<GANG_MAX_PLAYERS>;

foreach(new pL : TEST::PLAYERS) // here
{
    // ....
}
@Zorono Zorono changed the title macros doesn't work well with foreach macros doesn't work well with IteratorArray Aug 12, 2024
@Zorono Zorono changed the title macros doesn't work well with IteratorArray macros doesn't work well with IteratorArray and Iterator Aug 30, 2024
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

No branches or pull requests

1 participant