const
GTK_TYPE_FILE_CHOOSER_DIALOG* = (gtk_file_chooser_dialog_get_type())
from
#define GTK_TYPE_FILE_CHOOSER_DIALOG (gtk_file_chooser_dialog_get_type ())
which does not compile.
Without much thinking I fixed it to proc consts in the wrappers:
const
GTK_TYPE_FILE_CHOOSER_DIALOG* = gtk_file_chooser_dialog_get_type
But it seems that for gtk's typecast to work I would prefer something like
template GTK_TYPE_FILE_CHOOSER_DIALOG*(): expr =
gtk_file_chooser_dialog_get_type()
Iwonder if such a template should indeed be the default output of c2nim.
And finally, what is improved in latest c2nim 0.10.3? I guess C identifiers like "func" or "object" are enclosed in backticks now. Other improvements?
http://i.imgur.com/oCem13Y.png
Sorry about the screenshot of text, but I couldn't figure out how to get syntax highlighting otherwise.