Re: [Vala] GINT_TO_POINTER
- From: Julian Andres Klode <jak jak-linux org>
- To: "W. Michael Petullo" <mike flyn org>
- Cc: vala-list gnome org
- Subject: Re: [Vala] GINT_TO_POINTER
- Date: Thu, 09 Dec 2010 19:06:30 +0100
On Do, 2010-12-09 at 11:40 -0600, W. Michael Petullo wrote:
Is there a GINT_TO_POINTER-like capability in Vala? Or, if I need
something like this does it mean I am not trying to solve a problem in
a Vala way? In C, I often use this macro to place integers into GLib
datatypes like GHashTable.
That's int.to_pointer(), but in Vala all those things a generics anyway,
so you would store the int there, not a pointer.
You could have found that yourself with a simple grep in the vapis:
$ grep -A1 -R GINT_TO_POINTER vapi/
vapi/glib-2.0.vapi: [CCode (cname = "GINT_TO_POINTER")]
vapi/glib-2.0.vapi- public void* to_pointer ();
--
Julian Andres Klode - Debian Developer, Ubuntu Member
See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]