github.com/searKing/golang/go@v1.2.117/runtime/cgosymbolizer/traceback.h (about)

     1  // Copyright (c) 2019 The searKing authors. All Rights Reserved.
     2  //
     3  // Use of this source code is governed by a MIT-style license
     4  // that can be found in the LICENSE file in the root of the source
     5  // tree. An additional intellectual property rights grant can be found
     6  // in the file PATENTS.  All contributing project authors may
     7  // be found in the AUTHORS file in the root of the source tree.
     8  
     9  // +build cgo
    10  
    11  #ifndef GO_RUNTIME_CGOSYMBOLIZER_TRACEBACK_H_
    12  #define GO_RUNTIME_CGOSYMBOLIZER_TRACEBACK_H_
    13  // We want to get a definition for uintptr_t
    14  #include <cstdint>
    15  
    16  
    17  struct cgoTracebackArg {
    18  	uintptr_t  context;
    19  	uintptr_t  sigContext;
    20  	uintptr_t* buf;
    21  	uintptr_t  max;
    22  };
    23  
    24  
    25  #ifdef __cplusplus
    26  extern "C" {
    27  #endif
    28  
    29  void cgoTraceback(cgoTracebackArg* parg);
    30  
    31  #ifdef __cplusplus
    32  }
    33  #endif
    34  
    35  #endif  // GO_RUNTIME_CGOSYMBOLIZER_TRACEBACK_H_