Skip to content

Commit

Permalink
[CHANGE] Rename nolit templatevar to noliterals for clarity.
Browse files Browse the repository at this point in the history
  • Loading branch information
rentzsch committed Apr 25, 2013
1 parent ead1302 commit dba7cff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions templates/machine.m.motemplate
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const struct <$managedObjectClassName$>UserInfo <$managedObjectClassName$>UserIn

<$if ! Attribute.isReadonly$>
- (void)set<$Attribute.name.initialCapitalString$>Value:(<$Attribute.scalarAttributeType$>)value_ {
[self set<$Attribute.name.initialCapitalString$>:<$if TemplateVar.nolit$>[NSNumber <$Attribute.scalarFactoryMethodName$>value_]<$else$>@(value_)<$endif$>];
[self set<$Attribute.name.initialCapitalString$>:<$if TemplateVar.noliterals$>[NSNumber <$Attribute.scalarFactoryMethodName$>value_]<$else$>@(value_)<$endif$>];
}
<$endif$>

Expand All @@ -86,7 +86,7 @@ const struct <$managedObjectClassName$>UserInfo <$managedObjectClassName$>UserIn
}

- (void)setPrimitive<$Attribute.name.initialCapitalString$>Value:(<$Attribute.scalarAttributeType$>)value_ {
[self setPrimitive<$Attribute.name.initialCapitalString$>:<$if TemplateVar.nolit$>[NSNumber <$Attribute.scalarFactoryMethodName$>value_]<$else$>@(value_)<$endif$>];
[self setPrimitive<$Attribute.name.initialCapitalString$>:<$if TemplateVar.noliterals$>[NSNumber <$Attribute.scalarFactoryMethodName$>value_]<$else$>@(value_)<$endif$>];
}
<$endif$>
<$endif$>
Expand Down
4 changes: 2 additions & 2 deletions test/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ end

desc 'Generate, Compile and Run MRC Code (without objc literals)'
task :mrc_noliterals do
gen_and_compile('MRC (without objc literals)', mogenPath, '--template-var nolit=true', '')
gen_and_compile('MRC (without objc literals)', mogenPath, '--template-var noliterals=true', '')
end

desc 'Generate, Compile and Run ARC Code (with objc literals)'
Expand All @@ -39,7 +39,7 @@ end

desc 'Generate, Compile and Run ARC Code (without objc literals)'
task :arc_noliterals do
gen_and_compile('ARC (without objc literals)', mogenPath, '--template-var arc=true --template-var nolit=true', '-fobjc-arc')
gen_and_compile('ARC (without objc literals)', mogenPath, '--template-var arc=true --template-var noliterals=true', '-fobjc-arc')
end

desc 'Clean output'
Expand Down

0 comments on commit dba7cff

Please sign in to comment.