Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for endif (0.21 sec)

  1. src/cmd/asm/internal/lex/input.go

    		in.ifdefStack[len(in.ifdefStack)-1] = !in.ifdefStack[len(in.ifdefStack)-1]
    	}
    }
    
    // #endif processing.
    func (in *Input) endif() {
    	in.expectNewline("#endif")
    	if len(in.ifdefStack) == 0 {
    		in.Error("unmatched #endif")
    	}
    	in.ifdefStack = in.ifdefStack[:len(in.ifdefStack)-1]
    }
    
    // #include processing.
    func (in *Input) include() {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 12.6K bytes
    - Viewed (0)
  2. src/cmd/asm/internal/lex/lex_test.go

    			"#ifdef B",
    			"#define C 1234",
    			"#else",
    			"#define C 5678",
    			"#endif",
    			"#endif",
    			"C",
    		),
    		"5678.\n",
    	},
    	{
    		"nested not-taken/would-be-taken #ifdef",
    		lines(
    			"#define B",
    			"#ifdef A",
    			"#ifdef B",
    			"#define C 1234",
    			"#else",
    			"#define C 5678",
    			"#endif",
    			"#endif",
    			"C",
    		),
    		"C.\n",
    	},
    	{
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 5.8K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/test/issue24161e1/main.go

      #define kSecKeyAlgorithmECDSASignatureDigestX962SHA1 foo()
      static SecKeyAlgorithm foo(void){return NULL;}
    #endif
    */
    import "C"
    import (
    	"fmt"
    	"testing"
    )
    
    func f1() {
    	C.SecKeyCreateSignature(0, C.kSecKeyAlgorithmECDSASignatureDigestX962SHA1, 0, nil)
    }
    
    func f2(e C.CFErrorRef) {
    Go
    - Registered: Tue Mar 26 11:13:08 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 1K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/test/callback_windows.go

    		}
    
    		ControlPc = context.Rip;
    		// Check if we left the user range.
    		if (ControlPc < 0x10000) {
    			break;
    		}
    
    		BackTrace[i] = (PVOID)(ControlPc);
    	}
    	return i;
    #else
    	return 0;
    #endif
    }
    */
    import "C"
    
    import (
    	"internal/testenv"
    	"reflect"
    	"runtime"
    	"strings"
    	"testing"
    	"unsafe"
    )
    
    // Test that the stack can be unwound through a call out and call back
    // into Go.
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Nov 29 16:01:37 GMT 2023
    - 2.6K bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/test/issue27340/a.go

    //
    // typedef struct {
    // 	int a;
    // } issue27340Struct;
    //
    // static issue27340Struct* issue27340Ptr(issue27340Struct* p) { return p; }
    //
    // static void issue27340CFunc(issue27340Struct *p) {}
    // #endif /* _GNU_MAJOR_ < 5 */
    import "C"
    
    func Issue27340GoFunc() {
    	var s C.issue27340Struct
    	C.issue27340CFunc(C.issue27340Ptr(&s))
    Go
    - Registered: Tue Mar 26 11:13:08 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 1.2K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/test/issue24161e0/main.go

      #define kSecKeyAlgorithmECDSASignatureDigestX962SHA1 foo()
      static SecKeyAlgorithm foo(void){return NULL;}
    #endif
    */
    import "C"
    import "testing"
    
    func f1() {
    	C.SecKeyCreateSignature(0, C.kSecKeyAlgorithmECDSASignatureDigestX962SHA1, 0, nil)
    }
    
    Go
    - Registered: Tue Mar 26 11:13:08 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 919 bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/test/issue24161e2/main.go

      #define kSecKeyAlgorithmECDSASignatureDigestX962SHA1 foo()
      static SecKeyAlgorithm foo(void){return NULL;}
    #endif
    */
    import "C"
    import (
    	"fmt"
    	"testing"
    )
    
    var _ C.CFStringRef
    
    func f1() {
    	C.SecKeyCreateSignature(0, C.kSecKeyAlgorithmECDSASignatureDigestX962SHA1, 0, nil)
    }
    
    func f2(e C.CFErrorRef) {
    Go
    - Registered: Tue Mar 26 11:13:08 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 1K bytes
    - Viewed (1)
  8. src/cmd/cgo/internal/test/issue20266/issue20266.h

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    #define issue20266 20266
    
    #ifndef def20266
    #error "expected def20266 to be defined"
    C
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 251 bytes
    - Viewed (0)
  9. src/cmd/asm/doc.go

    Input language:
    
    The assembler uses mostly the same syntax for all architectures,
    the main variation having to do with addressing modes. Input is
    run through a simplified C preprocessor that implements #include,
    #define, #ifdef/endif, but not #if or ##.
    
    For more information, see https://golang.org/doc/asm.
    */
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 22 20:46:45 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  10. src/cmd/cgo/gcc.go

    //
    #if __LP64__
    #define CF_IS_TAGGED_OBJ(PTR)	((uintptr_t)(PTR) & 0x1)
    #define CF_TAGGED_OBJ_TYPE(PTR)	((uintptr_t)(PTR) & 0xF)
    #else
    #define CF_IS_TAGGED_OBJ(PTR)	0
    #define CF_TAGGED_OBJ_TYPE(PTR)	0
    #endif
    
    enum {
        kCFTaggedObjectID_Invalid = 0,
        kCFTaggedObjectID_Atom = (0 << 1) + 1,
        kCFTaggedObjectID_Undefined3 = (1 << 1) + 1,
        kCFTaggedObjectID_Undefined2 = (2 << 1) + 1,
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
Back to top