[vala/parallel] Don't emit ref function attributes for fast vapi
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/parallel] Don't emit ref function attributes for fast vapi
- Date: Sun, 22 Aug 2010 19:08:58 +0000 (UTC)
commit 3151091c18ebebcca65c3f926151ed7e98aa5b92
Author: Ryan Lortie <desrt desrt ca>
Date: Sun Aug 22 14:22:56 2010 -0400
Don't emit ref function attributes for fast vapi
vala/valacodewriter.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vala/valacodewriter.vala b/vala/valacodewriter.vala
index 4a6fc85..7760489 100644
--- a/vala/valacodewriter.vala
+++ b/vala/valacodewriter.vala
@@ -217,7 +217,7 @@ public class Vala.CodeWriter : CodeVisitor {
write_string ("[CCode (");
- if (cl.is_reference_counting ()) {
+ if (cl.is_reference_counting () && type != CodeWriterType.FAST) {
if (cl.base_class == null || cl.base_class.get_ref_function () == null || cl.base_class.get_ref_function () != cl.get_ref_function ()) {
write_string ("ref_function = \"%s\", ".printf (cl.get_ref_function ()));
if (cl.ref_function_void) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]