Skip to content

Reading a C constant definition? #20

@MaulingMonkey

Description

@MaulingMonkey

https://rust-tutorials.github.io/triangle-from-scratch/opening_a_window/win32.html#creating-the-window introduces constants derived from C #defines. Earlier asides such as Reading a C struct declaration seem to imply the audience isn't assumed to know C - so it might be worth briefly noting what these look like in the original C headers (e.g. #define WS_OVERLAPPED ... / enum { ... }) and how the exact type these match to in Rust can be somewhat ambiguous / down to the author's own personal guesswork.

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