rush-ecs-parser 0.1.0

Rush ECS Framework Parser
Documentation
1
2
3
4
5
6
7
8
9
10
11
/// Ensures a Syntax condition is met or panic
///
/// Panics if condition is `false`
///
/// Mainly used for ensuring expected syntax is
/// followed when parsing
pub fn ensure_syntax(message: String, condition: bool) {
    if !condition {
        panic!("Error parsing: {message}");
    }
}