cprefix/cname attribute not applied to finalize function
for example, if i try to complie this:
[CCode ( cname = "class_test", cprefix = "class_test_")]
public class Test.Class {
public Class () {
}
~Class () {
}
}
void main () {
}
give this error:
/home/marukesu/test.vala.c:223:42: error: ‘class_test_finalize’ undeclared (first use in this function); did you mean ‘class_testPrivate’?
((class_testClass *) klass)->finalize = class_test_finalize;
^~~~~~~~~~~~~~~~~~~
class_testPrivate
/home/marukesu/test.vala.c:223:42: note: each undeclared identifier is reported only once for each function it appears in
error: cc exited with status 256
Compilation failed: 1 error(s), 0 warning(s)
looking in the c file, seems that the finalize function is named test_class_finalize
instead of class_test_finalize
.