-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1637be8
commit 316103d
Showing
7 changed files
with
83 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
#include "common_include.h" | ||
|
||
|
||
void yy_debug_log_print_args(uint64_t num, const char *func_name, ...) { | ||
va_list args; | ||
va_start(args, func_name); | ||
fprintf(stderr, "%s called with ", func_name); | ||
// void yy_debug_log_print_args(uint64_t num, const char *func_name, ...) { | ||
// va_list args; | ||
// va_start(args, func_name); | ||
// fprintf(stderr, "%s called with ", func_name); | ||
|
||
yyvalue arg; | ||
arg = va_arg(args, yyvalue); | ||
fprintf(stderr, "ret = "); | ||
yy_print_yyvalue(arg, 0); | ||
fprintf(stderr, ", "); | ||
// yyvalue arg; | ||
// arg = va_arg(args, yyvalue); | ||
// fprintf(stderr, "ret = "); | ||
// yy_print_yyvalue(arg, 0); | ||
// fprintf(stderr, ", "); | ||
|
||
for (int i = 1; i < num; i++) { | ||
arg = va_arg(args, yyvalue); | ||
fprintf(stderr, "arg %d = ", i); | ||
yy_print_yyvalue(arg, 0); | ||
if (i != num - 1) { | ||
fprintf(stderr, ", "); | ||
} | ||
va_end(args); | ||
} | ||
// for (int i = 1; i < num; i++) { | ||
// arg = va_arg(args, yyvalue); | ||
// fprintf(stderr, "arg %d = ", i); | ||
// yy_print_yyvalue(arg, 0); | ||
// if (i != num - 1) { | ||
// fprintf(stderr, ", "); | ||
// } | ||
// va_end(args); | ||
// } | ||
|
||
fprintf(stderr, "\n"); | ||
} | ||
// fprintf(stderr, "\n"); | ||
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters