Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for HELLO_WORLD (0.11 sec)

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

                    Greeter* greeter = [Greeter new];
                    [greeter sayHello];
                    [greeter release];
                    return 0;
                }
            """)
        }
    
        String alternateOutput = "$HELLO_WORLD\n"
    
        @Override
        SourceFile getLibraryHeader() {
            return sourceFile("headers", "hello.h", """
                #ifndef HELLO_H
                #define HELLO_H
                #import <Foundation/Foundation.h>
    
    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/ObjectiveCppHelloWorldApp.groovy

                #import "hello.h"
    
                int main (int argc, const char * argv[])
                {
                    std::cout << "${HELLO_WORLD} ${HELLO_WORLD}" << std::endl;
                    return 0;
                }
            """)
        }
    
        String alternateOutput = "${HELLO_WORLD} ${HELLO_WORLD}\n"
    
    
        @Override
        List<SourceFile> getAlternateLibrarySources() {
            return [
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  3. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/CppGreeterFunction.groovy

    #endif // GREETER_H
    """))
    
            privateHeader = ofFile(sourceFile("headers", "greeter_consts.h", """
    #ifndef GREETER_CONSTS_H
    #define GREETER_CONSTS_H
    
    #define GREETING "${HelloWorldApp.HELLO_WORLD}"
    
    #endif // GREETER_CONSTS_H
    """))
    
            source = ofFile(sourceFile("cpp", "greeter.cpp", """
    #include <iostream>
    #include "greeter.h"
    #include "greeter_consts.h"
    
    void sayGreeting() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  4. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/ExeWithDiamondDependencyHelloWorldApp.groovy

    import org.gradle.integtests.fixtures.SourceFile
    
    class ExeWithDiamondDependencyHelloWorldApp extends ExeWithLibraryUsingLibraryHelloWorldApp {
    
        @Override
        String getEnglishOutput() {
            return HELLO_WORLD + " " + HELLO_WORLD + " " + HELLO_WORLD
        }
    
        @Override
        String getFrenchOutput() {
            return HELLO_WORLD_FRENCH + "\n"
        }
    
        @Override
        SourceFile getMainSource() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  5. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/CHelloWorldApp.groovy

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

                    public init() {}
                    public func sayHello() {
                        print("${HelloWorldApp.HELLO_WORLD}")
                    }
                }
            """)
        }
    
        @Override
        String getExpectedOutput() {
            return "${HelloWorldApp.HELLO_WORLD}\n"
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  7. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/ExeWithLibraryUsingLibraryHelloWorldApp.groovy

                List<SourceFile> getSourceFiles() {
                    return greetingsSources
                }
            }
        }
    
        @Override
        String getEnglishOutput() {
            return HELLO_WORLD + " " + HELLO_WORLD
        }
    
        @Override
        String getFrenchOutput() {
            return HELLO_WORLD_FRENCH + "\n"
        }
    
        @Override
        SourceFile getMainSource() {
            sourceFile("cpp", "main.cpp", """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  8. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/SwiftGreeterUsesLogger.groovy

                    public init() { }
                    public func sayHello() {
                        log("${HelloWorldApp.HELLO_WORLD}")
                    }
                }
            """)
        }
    
        @Override
        String getExpectedOutput() {
            return "${HelloWorldApp.HELLO_WORLD}\n"
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  9. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/SwiftGreeterWithOptionalFeature.groovy

                    public init() {}
                    public func sayHello() {
    #if WITH_FEATURE
                        print("${HelloWorldApp.HELLO_WORLD_FRENCH}")
    #else
                        print("${HelloWorldApp.HELLO_WORLD}")
    #endif
                    }
                }
            """)
        }
    
        GreeterElement withFeatureEnabled() {
            return new GreeterElement() {
                @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  10. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/CppGreeter.groovy

    #define EXPORT_FUNC
    #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() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2K bytes
    - Viewed (0)
Back to top