Skip to content

Broken include when given imgui_internal.h #84

@Ldash4

Description

@Ldash4

Hi,

I'm finally trying to get imgui_internal.h working for my Odin bindings. When running dear_bindings however, I get a malformed include. Here is a repro .sh:

#!/bin/bash

rm -rf dear_bindings imgui temp

git clone https://github.com/dearimgui/dear_bindings.git dear_bindings
git checkout -C dear_bindings 81c906b # latest commit at time of writing

git clone https://github.com/ocornut/imgui.git imgui
git checkout -C imgui v1.91.8-docking # latest tag at time of writing. But bug doesn't seem to depend on the imgui commit

mkdir -p temp
python "dear_bindings\dear_bindings.py" -o "temp\c_imgui" --include "imgui\imgui.h" "imgui\imgui_internal.h"

# See that `temp/c_imgui.cpp:20` is now `#include ".h"`

(ignore the mixed forwards and back slashes. This is apparently what running python through git bash wants)

I suspect that this has something to do with the folder layout of my bindings, which is a bit different to the example given in the README.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions