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

[BUG] palette.h include does not resolve S4C_Color #8

Open
jgabaut opened this issue Oct 24, 2024 · 0 comments
Open

[BUG] palette.h include does not resolve S4C_Color #8

jgabaut opened this issue Oct 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@jgabaut
Copy link
Owner

jgabaut commented Oct 24, 2024

After 0.1.3, the palette script was updated to use the new header name.

However, this is not enough to ensure the needed symbol are resolved within the generated palette.h, as of s4c 0.4.8.

Changing the generated include code may solve the issue:

#ifndef S4C_HAS_ANIMATE
#define S4C_SCRIPTS_PALETTE_ANIMATE_CLEANUP
#define S4C_HAS_ANIMATE
#endif //!S4C_HAS_ANIMATE
#include "sprites4curses/src/s4c.h"
#ifdef PALETTE_ANIMATE_CLEANUP
#undef S4C_HAS_ANIMATE
#undef S4C_SCRIPTS_PALETTE_ANIMATE_CLEANUP
#endif //PALETTE_ANIMATE_CLEANUP
@jgabaut jgabaut added the bug Something isn't working label Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant