Skip to content

Commit

Permalink
ci: run wasm32-target betterC mode
Browse files Browse the repository at this point in the history
  • Loading branch information
kassane committed Jan 15, 2025
1 parent 2005c4e commit 3f98942
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ jobs:
- name: (Zig) Build Native
run: zig build -Dimgui --summary all
- name: (Zig + emsdk) Build Wasm
run: zig build -Dimgui -DzigCC --summary all -Dtarget=wasm32-emscripten-none -Doptimize=ReleaseSmall
run: zig build -Dimgui -DzigCC --summary all -Dtarget=wasm32-emscripten-none -Doptimize=ReleaseSmall -DbetterC
10 changes: 0 additions & 10 deletions src/cimgui/cimgui.d
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,6 @@ module cimgui.cimgui;
// get dcimgui headers to module - @system (unsafe) functions by default
public import cimgui.dcimgui;

version (D_BetterC)
{
// No conflict with object.size_t (DRT)
}
else
{
// replace object.size_t to cimgui.dcimgui.size_t
version (Windows) alias size_t = ulong;
}

scope ImGuiContext_t* CreateContext(scope const(ImFontAtlas_t)* shared_font_atlas) @trusted
{
return igCreateContext(cast(ImFontAtlas_t*) shared_font_atlas);
Expand Down

0 comments on commit 3f98942

Please sign in to comment.