Re: [Vala] typeinfo of non-existent enum in vapi file
- From: Thomas Olson <tolson stratagium net>
- To: Evan Nemerson <evan coeus-group com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] typeinfo of non-existent enum in vapi file
- Date: Sat, 05 Oct 2013 17:03:56 -0500
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]