Mixed-case symbols
lassik opened this issue · comments
How does one call C functions with mixed-case names? The code generator turns both @ftglCreatePixmapFont
and |@ftglCreatePixmapFont|
into ftglcreatepixmapfont
.
I'd expect kebab-case: ftgl-create-pixmap-font
.
That doesn't preserve case either - @ftgl-Create-Pixmap-Font
turns into ftgl_create_pixmap_font
.
Huh. I must have missed that. Let me take a look and I'll get back to you.
I might have to add something in.
…Okay, I figured it out. If you do: "ftglCreatePixmapFont", it should work
as expected. So if you want to call it, you'd go
(call "ftglCreatePixmapFont" foo bar)
and it'd compile to:
ftglCreatePixmapFont(foo,bar);
…On Mon, May 13, 2019 at 1:13 PM Lassi Kortela ***@***.***> wrote:
That doesn't preserve case either - @ftgl-Create-Pixmap-Font turns into
ftgl_create_pixmap_font.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#12?email_source=notifications&email_token=ABGZI6BSHM36SWGF34MCL23PVG4VNA5CNFSM4HMRZ7Q2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVJI3YQ#issuecomment-491949538>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABGZI6D72LT4U64TDAP5Z43PVG4VNANCNFSM4HMRZ7QQ>
.
Also, if you do:
(call (%ftgl-create-pixmap-font) foo bar)
it compiles to
ftglCreatePixmapFont(foo,bar);
…On Mon, May 13, 2019 at 1:13 PM Lassi Kortela ***@***.***> wrote:
That doesn't preserve case either - @ftgl-Create-Pixmap-Font turns into
ftgl_create_pixmap_font.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#12?email_source=notifications&email_token=ABGZI6BSHM36SWGF34MCL23PVG4VNA5CNFSM4HMRZ7Q2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVJI3YQ#issuecomment-491949538>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABGZI6D72LT4U64TDAP5Z43PVG4VNANCNFSM4HMRZ7QQ>
.
Cool, thanks!