Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 57 for lib_func (0.16 sec)

  1. platforms/documentation/docs/src/snippets/native-binaries/cpp/groovy/src/hello/headers/hello.h

    #if defined(_WIN32) && defined(DLL_EXPORT)
    #define LIB_FUNC __declspec(dllexport)
    #else
    #define LIB_FUNC
    #endif
    
    class Greeter {
        public:
        void LIB_FUNC hello();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 171 bytes
    - Viewed (0)
  2. platforms/native/testing-native/src/integTest/groovy/org/gradle/nativeplatform/test/cpp/plugins/CppUnitTestDependenciesIntegrationTest.groovy

                
                int main() { 
                    lib_func();
                    return 0; 
                }
    """
            file("lib/src/main/public/lib.h") << """
                #ifdef _WIN32
                #define EXPORT_FUNC __declspec(dllexport)
                #else
                #define EXPORT_FUNC
                #endif
                
                void EXPORT_FUNC lib_func();
    """
            file("lib/src/main/cpp/lib.cpp") << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2K bytes
    - Viewed (0)
  3. platforms/native/language-native/src/integTest/groovy/org/gradle/language/cpp/CppBinariesRelocationIntegrationTest.groovy

                #endif
    
                void EXPORT_FUNC lib_func();
            """
        }
    
        private static String getLibrarySource() {
            return """
                #include "lib.h"
                void lib_func() { }
            """
        }
    
        private static String getApplicationSource() {
            return """
                #include "lib.h"
                int main() {
                    lib_func();
                    return 0;
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/native-binaries/c/groovy/src/hello/c/hello.c

    #include <stdio.h>
    #include "hello.h"
    
    void LIB_FUNC hello () {
      printf("Hello world!");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 92 bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/native-binaries/variants/groovy/src/hello/cpp/hello.cpp

    #include <iostream>
    #include "hello.h"
    
    void LIB_FUNC hello () {
      #ifdef FRENCH
      std::cout << "Bonjour monde!" << std::endl;
      #else
      std::cout << "Hello world!" << std::endl;
      #endif
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 190 bytes
    - Viewed (0)
  6. platforms/native/testing-native/src/integTest/groovy/org/gradle/nativeplatform/test/cpp/plugins/CppUnitTestWithLibraryDependenciesIntegrationTest.groovy

                #else
                #define EXPORT_FUNC
                #endif
                
                void EXPORT_FUNC lib_func();
    """
            file("lib/src/main/cpp/lib.cpp") << """
                #include <lib.h>
                void lib_func() { }
    """
        }
    
        @Override
        protected String getProductionComponentDsl() {
            return "library"
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/native-binaries/visual-studio/groovy/src/hello/cpp/hello.cpp

    #include <iostream>
    #include "hello.h"
    
    void LIB_FUNC hello () {
      std::cout << "Hello world!" << std::endl;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 111 bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/snippets/native-binaries/custom-layout/groovy/src/source/hello.c

    #include <stdio.h>
    #include "hello.h"
    
    void LIB_FUNC hello () {
      printf("Hello world!");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 92 bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/native-binaries/pre-compiled-headers/groovy/src/hello/cpp/hello.cpp

    #include "pch.h"
    
    void LIB_FUNC Greeter::hello () {
        std::cout << "Hello world!" << std::endl;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 100 bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/snippets/native-binaries/cpp/groovy/src/hello/cpp/hello.cpp

    #include <iostream>
    #include "hello.h"
    
    void LIB_FUNC Greeter::hello () {
        std::cout << "Hello world!" << std::endl;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 122 bytes
    - Viewed (0)
Back to top