Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 48 for sayHello (0.16 sec)

  1. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/ObjectiveCHelloWorldApp.groovy

                // Simple hello world app
                #include "hello.h"
    
                int main(int argc, const char * argv[])
                {
                    Greeter* greeter = [Greeter new];
                    [greeter sayHello];
                    [greeter release];
                    printf("%d", sum(7, 5));
                    return 0;
                }
            """)
        }
    
        @Override
        SourceFile getAlternateMainSource() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  2. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/CHelloWorldApp.groovy

                int main () {
                  sayHello();
                  printf("goodbye");
                  return 0;
                }
            """)
        }
    
        String alternateOutput = "$HELLO_WORLD\ngoodbye"
    
        List<SourceFile> alternateLibrarySources = [
            new SourceFile("c", "hello.c", """
                    #include "common.h"
    
                    void DLL_FUNC sayHello() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  3. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/CCallingMixedCAndCppHelloWorldApp.groovy

        @Override
        SourceFile getMainSource() {
            sourceFile("c", "main.c", """
                    #include <stdio.h>
                    #include "hello.h"
    
                    int main () {
                        sayHello();
                        printf("%d", sum(5, 7));
                        return 0;
                    }
            """)
        }
    
        @Override
        SourceFile getLibraryHeader() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  4. subprojects/core/src/test/groovy/org/gradle/internal/classpath/JavaCallerForBasicCallInterceptorTest.java

            return receiver.sayHello();
        }
    
        public static String doCallSayHello(InheritedMethodTestReceiver.A receiver) {
            return receiver.sayHello();
        }
    
        public static String doCallSayHello(InheritedMethodTestReceiver.B receiver) {
            return receiver.sayHello();
        }
    
        public static void doTestNoArg(InterceptorTestReceiver receiver) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jul 24 15:57:55 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  5. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/CppCallingCHelloWorldApp.groovy

                #define DLL_FUNC
                #endif
    
                void DLL_FUNC sayHello();
                int DLL_FUNC sum(int a, int b);
            """)
        }
    
        List<SourceFile> librarySources = [
            new SourceFile("c", "hello.c", """
                #include <stdio.h>
                #include "hello.h"
    
                void DLL_FUNC sayHello() {
                    #ifdef FRENCH
                    printf("${HELLO_WORLD_FRENCH}\\n");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2K bytes
    - Viewed (0)
  6. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/ObjectiveCppHelloWorldApp.groovy

                #include <stdint.h>
                #import <Foundation/Foundation.h>
                #include "hello.h"
    
                int main (int argc, const char * argv[])
                {
                    sayHello();
                    printf("%d", sum(7, 5));
                    return 0;
                }
            """)
        }
    
        @Override
        SourceFile getLibraryHeader() {
            return sourceFile("headers", "hello.h", """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  7. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/CppHelloWorldApp.groovy

                  greeter.sayHello();
                  std::cout << sum(5, 7);
                  return 0;
                }
            """)
        }
    
        SourceFile getAlternateMainSource() {
            sourceFile("cpp", "main.cpp", """
                #include <iostream>
                #include "hello.h"
    
                int main () {
                  Greeter greeter;
                  greeter.sayHello();
                  return 0;
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/snippets/mavenMigration/ant/tests/hello.sample.conf

    executable: gradle
    args: sayHello
    expected-output-file: hello.out
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 96 bytes
    - Viewed (0)
  9. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/CppGreeterWithOptionalFeature.groovy

    #define EXPORT_FUNC __declspec(dllexport)
    #else
    #define EXPORT_FUNC
    #endif
    
    class Greeter {
    public:
        void EXPORT_FUNC sayHello();
    };
    """))
    
        final SourceFileElement source = ofFile(new SourceFile("cpp", "greeter.cpp", """
    #include <iostream>
    #include "greeter.h"
    
    void Greeter::sayHello() {
    #ifdef WITH_FEATURE
    #pragma message("compiling with feature enabled")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/snippets/native-binaries/objective-c/groovy/src/main/objc/main.m

    #import "greeter.h"
    
    int main (int argc, const char * argv[])
    {
        NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
    
        Greeter *greeter = [Greeter new];
        [greeter sayHello];
        [greeter release];
    
        [pool drain];
    
        return 0;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 249 bytes
    - Viewed (0)
Back to top