project_files/HedgewarsMobile/Classes/CommodityFunctions.m
changeset 3668 3f7a95234d8a
parent 3660 bc125bea5849
child 3670 4c673e57f0d7
equal deleted inserted replaced
3667:9359a70df013 3668:3f7a95234d8a
   152     natural_t mem_used = (vm_stat.active_count + vm_stat.inactive_count + vm_stat.wire_count) * pagesize;
   152     natural_t mem_used = (vm_stat.active_count + vm_stat.inactive_count + vm_stat.wire_count) * pagesize;
   153     natural_t mem_free = vm_stat.free_count * pagesize;
   153     natural_t mem_free = vm_stat.free_count * pagesize;
   154     natural_t mem_total = mem_used + mem_free;
   154     natural_t mem_total = mem_used + mem_free;
   155     DLog(@"used: %u free: %u total: %u", mem_used, mem_free, mem_total);
   155     DLog(@"used: %u free: %u total: %u", mem_used, mem_free, mem_total);
   156 }
   156 }
       
   157 
       
   158 BOOL isPhone() {
       
   159     return (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone);
       
   160 }