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

How can I implement the following functionality? #11

Open
King8611 opened this issue Nov 13, 2023 · 1 comment
Open

How can I implement the following functionality? #11

King8611 opened this issue Nov 13, 2023 · 1 comment

Comments

@King8611
Copy link

Hello, I would like to implement a macro definition feature similar to C++. Here is an example code. Could you please guide me on how to achieve this?

#define GIsShipping

#if GIsShipping then
    #define Log(...) Log(...)
#else
    #define Log(...) 
#endif
@King8611
Copy link
Author

My goal is to avoid modifying the existing code in the project and prevent memory allocation and garbage collection for the strings passed to Log in the shipping version.

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