Skip to content

ALSZ assert  #34

@MartKro

Description

@MartKro

I have seen the following code snippers in the alsz-ot-snd/rcv.cpp implementation:

assert(CheckConsistency(&check_queue, check_chan)); //CheckConsistency(&check_queue, check_chan);

//assert(CheckConsistency(&check_queue, check_chan)); //CheckConsistency(&check_queue, check_chan);

Especially the first definition seems very dangerous (since come compilers like gcc optimize asserts out so that the methods inside assert are not evaluated. What is the purpose of this? What is the intended way to evaluate the asserts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions