Phix and C varargs
- Posted by irv Jan 09, 2021
- 772 views
Does Phix provide an easier way to handle calls like this:
GtkListStore * gtk_list_store_new (gint n_columns, ...);Creates a new list store with n_columns columns each of the types passed in.
As an example, gtk_list_store_new (3, G_TYPE_INT, G_TYPE_STRING,
GDK_TYPE_PIXBUF); will create a new GtkListStore with three
columns, of type int, string and GdkPixbuf respectively.
I managed an awkward way to do this with Euphoria. Rather not do that again if not necessary.
Thanks