3
0
Fork 0
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:
Clifford Wolf 2014-07-28 11:08:55 +02:00
parent d86a25f145
commit 7bd2d1064f
52 changed files with 236 additions and 251 deletions

View file

@ -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();