Skip to content

Generator improvements - #7

Open
RolandTaverner wants to merge 3 commits into
rumbu13:masterfrom
RolandTaverner:master
Open

Generator improvements#7
RolandTaverner wants to merge 3 commits into
rumbu13:masterfrom
RolandTaverner:master

Conversation

@RolandTaverner

Copy link
Copy Markdown
Contributor
  1. out/windows/win32/system/diagnostics/debug => out/windows/win32/system/diagnostics/debug_
  2. NativeEncodingAttribute - generate comment // Native encoding: ansi
  3. NativeBitfieldAttribute - generate comment like // Native bit field: Format: [0-3], Reserved1: [4-6], Msf: [7]
  4. Make bitfield field names unique in one structure instead of globally, so in the future they will not be renamed all at once

At least this works

import windows.win32.ui.windowsandmessaging;
int main(string[] args)
{
	wstring c = "Caption";
	wstring msg = "Hello!";
	MessageBoxW(HWND(null), PWSTR(cast(wchar*)msg.ptr), PWSTR(cast(wchar*)c.ptr), 0);
	return 0;
}

1) out/windows/win32/system/diagnostics/debug => out/windows/win32/system/diagnostics/debug_
2) NativeEncodingAttribute - generate comment // Native encoding: ansi
3) NativeBitfieldAttribute - generate comment like // Native bit field: Format: [0-3], Reserved1: [4-6], Msf: [7]
4) Make bitfield field names unique in one structure instead of globally, so in the future they will not be renamed all at once
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant