Skip to content

Commit

Permalink
Small improvements (#493)
Browse files Browse the repository at this point in the history
1. Make `pgduckdb/pgduckdb_types.hpp` self-contained
2. Enable `InvokeCPPFunc` to call functions without arguments
  • Loading branch information
dpxcc authored Dec 20, 2024
1 parent c9af4d1 commit 3b34bee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions include/pgduckdb/pgduckdb_types.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

#include "duckdb/common/types/data_chunk.hpp"
#include "pgduckdb/pg/declarations.hpp"

#include "pgduckdb/utility/cpp_only_file.hpp" // Must be last include.
Expand Down
2 changes: 1 addition & 1 deletion include/pgduckdb/utility/cpp_wrapper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ __CPPFunctionGuard__(const char *func_name, FuncArgs... args) {

} // namespace pgduckdb

#define InvokeCPPFunc(FUNC, ...) pgduckdb::__CPPFunctionGuard__<decltype(&FUNC), &FUNC>(__FUNCTION__, __VA_ARGS__)
#define InvokeCPPFunc(FUNC, ...) pgduckdb::__CPPFunctionGuard__<decltype(&FUNC), &FUNC>(__FUNCTION__, ##__VA_ARGS__)

// Wrappers

Expand Down

0 comments on commit 3b34bee

Please sign in to comment.