mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 14:13:23 +00:00
Using log_assert() instead of assert()
This commit is contained in:
parent
d86a25f145
commit
7bd2d1064f
52 changed files with 236 additions and 251 deletions
|
@ -37,7 +37,6 @@
|
|||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
|
||||
static std::list<std::string> output_code;
|
||||
static std::list<std::string> input_buffer;
|
||||
|
@ -65,7 +64,7 @@ static char next_char()
|
|||
if (input_buffer.empty())
|
||||
return 0;
|
||||
|
||||
assert(input_buffer_charp <= input_buffer.front().size());
|
||||
log_assert(input_buffer_charp <= input_buffer.front().size());
|
||||
if (input_buffer_charp == input_buffer.front().size()) {
|
||||
input_buffer_charp = 0;
|
||||
input_buffer.pop_front();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue