Skip to content

Commit

Permalink
@iOS metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
shoebox committed Mar 4, 2014
1 parent 3e759e9 commit dd886ff
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/org/shoebox/macros/MacroMirrors.hx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class MacroMirrors{
* @return void
*/
static public function build( ) : Array<Field>{

//Fields
var aFields : Array<Field> = Context.getBuildFields( );
var oClass : Null<Ref<ClassType>> = Context.getLocalClass( );
Expand All @@ -70,7 +70,7 @@ class MacroMirrors{
for( field in aFields.copy( ) ){

//
aMetas = [ for( m in field.meta ) if( m.name == "CPP" || m.name == "JNI" ) m ];
aMetas = [ for( m in field.meta ) if( m.name == "CPP" || m.name == "JNI" || m.name == "IOS" ) m ];

//
if( aMetas.length == 0 )
Expand All @@ -79,7 +79,6 @@ class MacroMirrors{
//
for(m in aMetas)
{

if(m.name == "CPP" && Context.defined("cpp"))
{
aFields.push( _cpp(
Expand Down

0 comments on commit dd886ff

Please sign in to comment.