Skip to content

Commit

Permalink
TestMergeHeader
Browse files Browse the repository at this point in the history
  • Loading branch information
ddkwork committed Jun 21, 2024
1 parent bfe3682 commit 8875bd0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gengo/bind/sdkMerge/sdk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ func MacrosInHeader() (m *maps.SafeMap[string, bool]) {
}

m2 := new(maps.SafeMap[string, bool])
//for _, s := range stream.NewBuffer("combined_headers.h").ToLines() {
for _, s := range stream.NewBuffer("merged_headers.h.h").ToLines() {
// for _, s := range stream.NewBuffer("combined_headers.h").ToLines() {
for _, s := range stream.NewBuffer("merged_headers.h").ToLines() {
if strings.HasPrefix(s, "#define ") {
m2.Set(s, true)
}
Expand Down Expand Up @@ -150,7 +150,8 @@ func TestBindSdk(t *testing.T) {
),
)
mylog.Check(pkg.Transform("HPRDBGCTRL", &clang.Options{
Sources: []string{"combined_headers.h"},
// Sources: []string{"combined_headers.h"},
Sources: []string{"merged_headers.h"},
AdditionalParams: []string{
//"-DZYAN_NO_LIBC",
//"-DZYAN_STATIC_ASSERT",
Expand Down

0 comments on commit 8875bd0

Please sign in to comment.