Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

..\..\private\font.nim(12, 28) Error: ordinal type expected #13

Open
retsyo opened this issue Jan 22, 2019 · 0 comments
Open

..\..\private\font.nim(12, 28) Error: ordinal type expected #13

retsyo opened this issue Jan 22, 2019 · 0 comments

Comments

@retsyo
Copy link

retsyo commented Jan 22, 2019

Nim Compiler Version 0.19.9 [Windows: amd64]
Compiled at 2018-12-13
Copyright (c) 2006-2018 by Andreas Rumpf

so I have to do some change

type
  WxFontFamily* {.size: sizeof(cint), importcpp: "wxFontFamily",
                  header: wxh.} = enum
    wxFONTFAMILY_DEFAULT = 70, wxFONTFAMILY_DECORATIVE,
    wxFONTFAMILY_ROMAN, wxFONTFAMILY_SCRIPT,
    wxFONTFAMILY_SWISS, wxFONTFAMILY_MODERN,
    wxFONTFAMILY_TELETYPE, wxFONTFAMILY_MAX

and

type
  WxFontStyle* {.size: sizeof(cint), importcpp: "wxFontStyle",
                 header: wxh.} = enum
    wxFONTSTYLE_NORMAL = 90, wxFONTSTYLE_ITALIC = 93,
    wxFONTSTYLE_SLANT, wxFONTSTYLE_MAX

But I remember that this is not a problem several months ago

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

No branches or pull requests

1 participant