Re: [Vala] Sharing a trick to use some C macros in VALA



* Feng Yu wrote, On 03/11/09 00:55:
import themwith Pragmas

You mean that a pragma would identify that an argument took a C type?

e.g.

talloc_zero(void* memctx, [argtype="typesymbol"] typesymbol);

Sam


On Nov 2, 2009 2:03 PM, "Sam Liddicott" <sam liddicott com <mailto:sam liddicott com>> wrote:

To get some of these tricks to work it would be helpful to be able to pass the C type underlying the vala type as a macro parameter.

I've a bug with patches that does this using typeof() to emit the C typesymbol but it doesn't meet Juerg's syntax expactations.

As interfacing with c macros is topical again, does anyone have ideas on this?

Sam

-----Original Message----- From: pancake <pancake youterm com <mailto:pancake youterm com>> Sent: 01 November 2009 10:29 To: Yu ...





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]