March 21, 2012 Converting C .h Files to D Modules | ||||
---|---|---|---|---|
| ||||
Attachments:
| Hi all, How to convert the following struct to D? typedef struct S { int type; void *obj; } S; I didn't found anything at http://dlang.org/htomodule.html. |
March 21, 2012 Re: Converting C .h Files to D Modules | ||||
---|---|---|---|---|
| ||||
Posted in reply to Pedro Lacerda | On 03/20/2012 07:01 PM, Pedro Lacerda wrote:
> Hi all,
>
> How to convert the following struct to D?
>
> typedef struct S {
> int type;
> void *obj;
> } S;
>
> I didn't found anything at http://dlang.org/htomodule.html.
(Assuming your 'int' is 32 bits)
struct S{
int type;
void* obj;
}
|
Copyright © 1999-2021 by the D Language Foundation