https://github.com/Kitware/CMake
Raw File
Tip revision: 0b6c6bb1ea67e2f84b6dc06cdad93350b312a0a6 authored by Brad King on 15 November 2023, 14:54:28 UTC
CMake 3.28.0-rc5
Tip revision: 0b6c6bb
main.m
#import <Foundation/Foundation.h>
#import "foo.h"

int main(int argc, char **argv)
{
  NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
  Foo *theFoo = [[Foo alloc] init];
  theFoo.age = [NSNumber numberWithInt:argc];
  NSLog(@"%d\n",[theFoo.age intValue]);
  [pool release];
  return 0;
}
back to top