Evan,
Much better than a compile time error. Thanks you!
Tom
On 10/05/2013 12:34 PM, Evan Nemerson wrote:
On Sat, 2013-10-05 at 06:19 -0500, Thomas Olson wrote:
Hello,
The sqlite3.vapi file defines the Sqlite.Action enum, which does not
really exist in the Sqlite souce code, so executing the following fails:
Type t = typeof(Sqlite.Action);
EnumClass k = (EnumClass)t.class_ref(); // doesn't get this far
The compiler error message is:
error: ‘SQLITE3_TYPE_ACTION’ undeclared (first use in this function)
Is there a way to create a vapi file so that Sqlite.Action would not be
considered an external define and instead considered a native Vala
declaration?
No, however they should have has_type_id = false CCode annotations.
I've just added them (01b9ffde), so now you should get G_TYPE_INT
instead of SQLITE3_TYPE_*.
-Evan
_______________________________________________
vala-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/vala-list