Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 150 for Macro (0.05 sec)

  1. platforms/native/platform-native/src/main/java/org/gradle/language/nativeplatform/internal/Macro.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package org.gradle.language.nativeplatform.internal;
    
    /**
     * An 'object-like' macro definition.
     */
    public interface Macro extends Expression {
        String getName();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 785 bytes
    - Viewed (0)
  2. 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)
  3. platforms/native/language-native/src/test/groovy/org/gradle/language/nativeplatform/internal/incremental/sourceparser/IncludeDirectivesSerializerTest.groovy

            def include4 = new IncludeWithMacroFunctionCallExpression("A", true, ImmutableList.of(new SimpleExpression("X", IncludeType.MACRO)))
            def include5 = new IncludeWithMacroFunctionCallExpression("A", true, ImmutableList.of(new SimpleExpression("X", IncludeType.MACRO), new SimpleExpression("Y", IncludeType.MACRO)))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  4. 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)
  5. platforms/native/platform-native/src/main/java/org/gradle/language/nativeplatform/internal/IncludeType.java

         */
        SYSTEM,
        /**
         * A quoted include path eg {@code "hello.h"}
         */
        QUOTED,
        /**
         * An identifier that should be macro expanded. These appear in the body of a directive eg {@code #define HEADER ABC}.
         */
        MACRO,
        /**
         * A macro function invocation that should be expanded. These appear in the body of a directive and as arguments to another function eg {@code #define HEADER ABC(X, Y)}.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. src/cmd/asm/internal/lex/lex_test.go

    	{
    		"define without value",
    		"#define A",
    		"",
    	},
    	{
    		"macro without arguments",
    		"#define A() 1234\n" + "A()\n",
    		"1234.\n",
    	},
    	{
    		"macro with just parens as body",
    		"#define A () \n" + "A\n",
    		"(.).\n",
    	},
    	{
    		"macro with parens but no arguments",
    		"#define A (x) \n" + "A\n",
    		"(.x.).\n",
    	},
    	{
    		"macro with arguments",
    		"#define A(x, y, z) x+z+y\n" + "A(1, 2, 3)\n",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 29 07:48:38 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  9. 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)
  10. platforms/native/language-native/src/main/java/org/gradle/language/nativeplatform/internal/incremental/sourceparser/DefaultIncludeDirectives.java

        private final ImmutableList<Include> allIncludes;
        private final ImmutableListMultimap<String, Macro> macros;
        private final ImmutableListMultimap<String, MacroFunction> macroFunctions;
    
        public static IncludeDirectives of(ImmutableList<Include> allIncludes, ImmutableList<Macro> macros, ImmutableList<MacroFunction> macroFunctions) {
            if (allIncludes.isEmpty() && macros.isEmpty() && macroFunctions.isEmpty()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.4K bytes
    - Viewed (0)
Back to top