Modulinos: Difference between revisions

Content added Content deleted
m (→‎{{header|Coffeescript}}: Changed language name)
Line 1,074: Line 1,074:


int __attribute__((weak)) main(int argc, char **argv) {
int __attribute__((weak)) main(int argc, char **argv) {
@autoreleasepool {
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];


printf("Main: The meaning of life is %d\n", [ScriptedMain meaningOfLife]);
printf("Main: The meaning of life is %d\n", [ScriptedMain meaningOfLife]);


}
[pool drain];


return 0;
return 0;
Line 1,089: Line 1,089:


int main(int argc, char **argv) {
int main(int argc, char **argv) {
@autoreleasepool {
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];


printf("Test: The meaning of life is %d\n", [ScriptedMain meaningOfLife]);
printf("Test: The meaning of life is %d\n", [ScriptedMain meaningOfLife]);


}
[pool drain];


return 0;
return 0;