⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Conversation

@AGulev
Copy link
Contributor

@AGulev AGulev commented Jan 17, 2026

-- the next line will be removed in release build but in debug it will be : assert(player_lives > 0)
--DEBUG_ASSERT(player_lives > 0)

@AGulev AGulev requested a review from britzl January 17, 2026 21:47
0. Make sure you have Java installed.
1. Run `./scripts/syntax_update.sh` to generate new Java classes from the syntax.
2. Download `bob.jar` into the project root.
3. Run `./scripts/build_plugin.sh` to update the plugin.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a couple of scripts for simlicity

You can also use `--DEBUG_ASSERT(...)` to include asserts only in debug builds:

```lua
--DEBUG_ASSERT(player_lives > 0)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found it useful in some cases to have debug only asserts, ofc it is possible now with

--#IF DEBUG
assert(...)
--#ENDIF

but it's too long

@AGulev AGulev merged commit c53533a into main Jan 18, 2026
24 checks passed
@AGulev AGulev deleted the debug_assert branch January 18, 2026 21:21
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.

3 participants