Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 50 for Macro (0.04 sec)

  1. platforms/native/language-native/src/test/groovy/org/gradle/language/nativeplatform/internal/incremental/DefaultSourceIncludesResolverTest.groovy

        }
    
        def "macro does not match macro function of the same name"() {
            given:
            macroFunctions << macroFunction("TEST", '"test.h"')
    
            expect:
            def result = resolve(include('TEST'))
            !result.complete
            result.files.empty
        }
    
        def "macro function does not match macro of the same name"() {
            given:
            macros << macro("TEST", '"test.h"')
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 16.8K bytes
    - Viewed (0)
  2. platforms/native/language-native/src/test/groovy/org/gradle/language/nativeplatform/internal/incremental/SourceParseAndResolutionTest.groovy

        }
    
        def "resolves macro with value that is a macro reference"() {
            given:
            sourceFile << """
                #define HEADER2 <hello.h>
                #define HEADER HEADER2 // indirection
                #include HEADER
            """
    
            expect:
            resolve() == [header]
        }
    
        def "resolves macro with value that is a macro function call with zero args"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 21.5K bytes
    - Viewed (0)
  3. src/cmd/asm/internal/lex/input.go

    }
    
    // invokeMacro pushes onto the input Stack a Slice that holds the macro definition with the actual
    // parameters substituted for the formals.
    // Invoking a macro does not touch the PC/line history.
    func (in *Input) invokeMacro(macro *Macro) {
    	// If the macro has no arguments, just substitute the text.
    	if macro.args == nil {
    		in.Push(NewSlice(in.Base(), in.Line(), macro.tokens))
    		return
    	}
    	tok := in.Stack.Next()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 29 07:48:38 UTC 2023
    - 12.6K bytes
    - Viewed (0)
  4. platforms/native/language-native/src/test/groovy/org/gradle/language/nativeplatform/internal/incremental/sourceparser/RegexBackedCSourceParserTest.groovy

            then:
            macros == [
                macro('SOME_STRING', '"abc"'),
                macro('SOME_STRING', '"xyz"'),
                macro('OTHER', '"1234"'),
                unresolvedMacro('EMPTY'),
                macro('FUNCTION', 'abc(a, b, c)'),
                unresolvedMacro('UNKNOWN'),
            ]
            macroFunctions.empty
        }
    
        def "finds function-like macro directive with no parameters whose body is a string constant"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 34.3K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/internal/gtest-death-test-internal.h

    // Parameters:
    //   statement -  A statement that a macro such as EXPECT_DEATH would test
    //                for program termination. This macro has to make sure this
    //                statement is compiled but not executed, to ensure that
    //                EXPECT_DEATH_IF_SUPPORTED compiles with a certain
    //                parameter iff EXPECT_DEATH compiles with it.
    //   regex     -  A regex that a macro such as EXPECT_DEATH would use to test
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  6. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-death-test-internal.h

    // Parameters:
    //   statement -  A statement that a macro such as EXPECT_DEATH would test
    //                for program termination. This macro has to make sure this
    //                statement is compiled but not executed, to ensure that
    //                EXPECT_DEATH_IF_SUPPORTED compiles with a certain
    //                parameter iff EXPECT_DEATH compiles with it.
    //   regex     -  A regex that a macro such as EXPECT_DEATH would use to test
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  7. platforms/native/language-native/src/main/java/org/gradle/language/nativeplatform/internal/incremental/sourceparser/RegexBackedCSourceParser.java

                parseMacroFunctionDirectiveBody(buffer, name, macroFunctions);
            } else {
                // An object-like macro
                parseMacroObjectDirectiveBody(buffer, name, macros);
            }
        }
    
        /**
         * Parse an "object-like" macro directive body. Consumes all input.
         */
        private void parseMacroObjectDirectiveBody(Buffer buffer, String macroName, Collection<Macro> macros) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 25.5K bytes
    - Viewed (0)
  8. platforms/native/language-native/src/main/java/org/gradle/language/nativeplatform/internal/incremental/DefaultSourceIncludesResolver.java

            boolean found = false;
            for (IncludeDirectives includeDirectives : visibleMacros) {
                Iterable<Macro> macros = includeDirectives.getMacros(expression.getValue());
                for (Macro macro : macros) {
                    found = true;
                    resolveExpression(visibleMacros, macro, visitor, tokenLookup);
                }
            }
            if (!found) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 24.4K bytes
    - Viewed (0)
  9. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest_pred_impl.h

                                << "\n" << e1 << " evaluates to " << v1;
    }
    
    // Internal macro for implementing {EXPECT|ASSERT}_PRED_FORMAT1.
    // Don't use this in your code.
    #define GTEST_PRED_FORMAT1_(pred_format, v1, on_failure)\
      GTEST_ASSERT_(pred_format(#v1, v1), \
                    on_failure)
    
    // Internal macro for implementing {EXPECT|ASSERT}_PRED1.  Don't use
    // this in your code.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/gtest_pred_impl.h

                                << "\n" << e1 << " evaluates to " << v1;
    }
    
    // Internal macro for implementing {EXPECT|ASSERT}_PRED_FORMAT1.
    // Don't use this in your code.
    #define GTEST_PRED_FORMAT1_(pred_format, v1, on_failure)\
      GTEST_ASSERT_(pred_format(#v1, v1), \
                    on_failure)
    
    // Internal macro for implementing {EXPECT|ASSERT}_PRED1.  Don't use
    // this in your code.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 14.8K bytes
    - Viewed (0)
Back to top