mirror of
https://github.com/chai2010/advanced-go-programming-book.git
synced 2025-05-24 04:22:22 +00:00
74 lines
1.6 KiB
Go
74 lines
1.6 KiB
Go
/* ----------------------------------------------------------------------------
|
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
* Version 3.0.12
|
|
*
|
|
* This file is not intended to be easily readable and contains a number of
|
|
* coding conventions designed to improve portability and efficiency. Do not make
|
|
* changes to this file unless you know what you are doing--modify the SWIG
|
|
* interface file instead.
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
// source: hello.i
|
|
|
|
package hello
|
|
|
|
/*
|
|
#define intgo swig_intgo
|
|
typedef void *swig_voidp;
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
typedef long long intgo;
|
|
typedef unsigned long long uintgo;
|
|
|
|
|
|
|
|
typedef struct { char *p; intgo n; } _gostring_;
|
|
typedef struct { void* array; intgo len; intgo cap; } _goslice_;
|
|
|
|
|
|
extern void _wrap_Swig_free_hello_679051ef4cde42b8(uintptr_t arg1);
|
|
extern uintptr_t _wrap_Swig_malloc_hello_679051ef4cde42b8(swig_intgo arg1);
|
|
extern void _wrap_SayHello_hello_679051ef4cde42b8(void);
|
|
#undef intgo
|
|
*/
|
|
import "C"
|
|
|
|
import "unsafe"
|
|
import _ "runtime/cgo"
|
|
import "sync"
|
|
|
|
|
|
type _ unsafe.Pointer
|
|
|
|
|
|
|
|
var Swig_escape_always_false bool
|
|
var Swig_escape_val interface{}
|
|
|
|
|
|
type _swig_fnptr *byte
|
|
type _swig_memberptr *byte
|
|
|
|
|
|
type _ sync.Mutex
|
|
|
|
func Swig_free(arg1 uintptr) {
|
|
_swig_i_0 := arg1
|
|
C._wrap_Swig_free_hello_679051ef4cde42b8(C.uintptr_t(_swig_i_0))
|
|
}
|
|
|
|
func Swig_malloc(arg1 int) (_swig_ret uintptr) {
|
|
var swig_r uintptr
|
|
_swig_i_0 := arg1
|
|
swig_r = (uintptr)(C._wrap_Swig_malloc_hello_679051ef4cde42b8(C.swig_intgo(_swig_i_0)))
|
|
return swig_r
|
|
}
|
|
|
|
func SayHello() {
|
|
C._wrap_SayHello_hello_679051ef4cde42b8()
|
|
}
|
|
|
|
|