Skip to content
This repository has been archived by the owner on Jan 28, 2024. It is now read-only.

Commit

Permalink
Minor invalid log for variadic function vs argument check
Browse files Browse the repository at this point in the history
  • Loading branch information
mannprerak2 committed Jul 22, 2023
1 parent 341237b commit 0c79be7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/header_parser/sub_parsers/functiondecl_parser.dart
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ List<Func>? parseFunctionDeclaration(clang_types.CXCursor cursor) {

// Initialized with a single value with no prefix and empty var args.
var varArgFunctions = [VarArgFunction('', [])];
if (clang.clang_isFunctionTypeVariadic(cursor.type()) == 1) {
if (config.varArgFunctions.containsKey(funcName)) {
if (config.varArgFunctions.containsKey(funcName)) {
if (clang.clang_isFunctionTypeVariadic(cursor.type()) == 1) {
varArgFunctions = config.varArgFunctions[funcName]!;
} else {
_logger.warning(
Expand Down

0 comments on commit 0c79be7

Please sign in to comment.