Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 48 for sayHello (0.22 sec)

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

    #endif
    
    class Greeter {
    public:
        void EXPORT_FUNC sayHello();
    };
    """))
    
            privateHeader = ofFile(new SourceFile("headers", "greeter_consts.h", """
    #define GREETING "${HelloWorldApp.HELLO_WORLD}"
    """))
    
            source = ofFile(new SourceFile("cpp", "greeter.cpp", """
    #include <iostream>
    #include "greeter.h"
    #include "greeter_consts.h"
    
    void Greeter::sayHello() {
        std::cout << GREETING << std::endl;
    }
    """))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2K bytes
    - Viewed (0)
  2. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/ExeWithLibraryUsingLibraryHelloWorldApp.groovy

                #define DLL_FUNC
                #endif
    
                void DLL_FUNC sayHello();
            """)
        }
    
        List<SourceFile> librarySources = [
            new SourceFile("cpp", "hello.cpp", """
                #include <iostream>
                #include "hello.h"
                #include "greetings.h"
    
                void DLL_FUNC sayHello() {
                    std::cout << getHello();
                }
            """)
        ]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/mavenMigration/ant/groovy/build.gradle

    tasks.register('sayHello') {
        doLast {
            ant.echo message: 'Hello!'
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 85 bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/native-binaries/objective-cpp/groovy/src/main/headers/greeter.h

    #define __STDC_LIMIT_MACROS
    #import <stdint.h>
    #import <Foundation/Foundation.h>
    
    @interface Greeter : NSObject
        - (void)sayHello;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 139 bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/native-binaries/objective-c/groovy/src/main/objc/greeter.m

    #import "greeter.h"
    
    @implementation Greeter
    
    - (void) sayHello {
        NSString *helloWorld = @"Hello world!";
        fprintf(stdout, "%s\n", [helloWorld UTF8String]);
    }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 172 bytes
    - Viewed (0)
  6. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/MixedLanguageHelloWorldApp.groovy

                #define DLL_FUNC
                #endif
    
                void DLL_FUNC sayHello();
                int DLL_FUNC sum(int a, int b);
    """)
        }
    
        List<SourceFile> getLibrarySources() {
            return  [
                new SourceFile("c", "hello.c", """
                #include <stdio.h>
                #include "hello.h"
    
                void DLL_FUNC sayHello() {
                    #ifdef FRENCH
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/native-binaries/objective-c/groovy/src/main/headers/greeter.h

    #import <Foundation/Foundation.h>
    
    @interface Greeter : NSObject
        - (void)sayHello;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 92 bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/snippets/mavenMigration/ant/kotlin/build.gradle.kts

    tasks.register("sayHello") {
        doLast {
            ant.withGroovyBuilder {
                "echo"("message" to "Hello!")
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 134 bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/native-binaries/objective-cpp/groovy/src/main/objcpp/greeter.mm

    #import <iostream>
    #import "greeter.h"
    
    @implementation Greeter
    
    - (void) sayHello {
        NSString *helloWorld = @"Hello world!";
        std::cout << [helloWorld UTF8String] << std::endl;
    }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 192 bytes
    - Viewed (0)
  10. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/CppGreeterUsesLogger.groovy

    #ifdef _WIN32
    #define EXPORT_FUNC __declspec(dllexport)
    #else
    #define EXPORT_FUNC
    #endif
    
    class Greeter {
    public:
        void EXPORT_FUNC sayHello();
    };
    """))
    
        final SourceFileElement privateHeader = ofFile(new SourceFile("headers", "greeter_consts.h", """
    #define GREETING "${HelloWorldApp.HELLO_WORLD}"
    """))
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.8K bytes
    - Viewed (0)
Back to top